ThreadOption Enumeration
Specifies on which thread a PubSubEvent<TPayload> subscriber will be called.
Namespace: Microsoft.Practices.Prism.PubSubEvents
Assembly: Microsoft.Practices.Prism.PubSubEvents (in Microsoft.Practices.Prism.PubSubEvents.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public enum ThreadOption
'Declaration
Public Enumeration ThreadOption
Members
Member name | Value | Description | |
---|---|---|---|
PublisherThread | 0 | The call is done on the same thread on which the PubSubEvent<TPayload> was published. | |
UIThread | 1 | The call is done on the UI thread. | |
BackgroundThread | 2 | The call is done asynchronously on a background thread. |