PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/V4/PrismLibrary/Desktop/Prism/Events/ThreadOption.cs

#
C# | 40 lines | 9 code | 3 blank | 28 comment | 0 complexity | a0842804b94b79ffa0d6920696f1a51a MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17
18namespace Microsoft.Practices.Prism.Events
19{
20    /// <summary>
21    /// Specifies on which thread a <see cref="CompositePresentationEvent{TPayload}"/> subscriber will be called.
22    /// </summary>
23    public enum ThreadOption
24    {
25        /// <summary>
26        /// The call is done on the same thread on which the <see cref="CompositePresentationEvent{TPayload}"/> was published.
27        /// </summary>
28        PublisherThread,
29
30        /// <summary>
31        /// The call is done on the UI thread.
32        /// </summary>
33        UIThread,
34
35        /// <summary>
36        /// The call is done asynchronously on a background thread.
37        /// </summary>
38        BackgroundThread
39    }
40}