PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 1ms 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. namespace Microsoft.Practices.Prism.Events
  18. {
  19. /// <summary>
  20. /// Specifies on which thread a <see cref="CompositePresentationEvent{TPayload}"/> subscriber will be called.
  21. /// </summary>
  22. public enum ThreadOption
  23. {
  24. /// <summary>
  25. /// The call is done on the same thread on which the <see cref="CompositePresentationEvent{TPayload}"/> was published.
  26. /// </summary>
  27. PublisherThread,
  28. /// <summary>
  29. /// The call is done on the UI thread.
  30. /// </summary>
  31. UIThread,
  32. /// <summary>
  33. /// The call is done asynchronously on a background thread.
  34. /// </summary>
  35. BackgroundThread
  36. }
  37. }