WorkflowServiceAttributes.UseSynchronizationContext Propiedad

Definición

Obtiene o establece un valor que especifica si utilizar el contexto de sincronización actual para elegir el subproceso de ejecución.

public:
 property bool UseSynchronizationContext { bool get(); void set(bool value); };
public bool UseSynchronizationContext { get; set; }
member this.UseSynchronizationContext : bool with get, set
Public Property UseSynchronizationContext As Boolean

Valor de propiedad

Boolean

true si todas las llamadas al servicio deben ejecutarse en el subproceso especificado por el SynchronizationContext; de lo contrario, false.

Ejemplos

En el ejemplo siguiente se muestra cómo se obtiene acceso a la propiedad UseSynchronizationContext.

WorkflowServiceAttributes attributes = new WorkflowServiceAttributes();
attributes.UseSynchronizationContext = false;
Dim attributes As New WorkflowServiceAttributes()
attributes.UseSynchronizationContext = False

Comentarios

El valor predeterminado es true.

Se aplica a