PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/V4/Quickstarts/Modularity/Desktop/ModularityWithUnity/ModularityWithUnity.Desktop/DiscoveryMethod.cs

#
C# | 44 lines | 10 code | 3 blank | 31 comment | 0 complexity | ad5f1b380243b215c943e8a294990318 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 ModularityWithUnity.Desktop
  18. {
  19. /// <summary>
  20. /// Describes how a module is discovered.
  21. /// </summary>
  22. public enum DiscoveryMethod
  23. {
  24. /// <summary>
  25. /// The module is directly referenced by the application.
  26. /// </summary>
  27. ApplicationReference,
  28. /// <summary>
  29. /// The module is listed in a XAML manifest file.
  30. /// </summary>
  31. XamlManifest,
  32. /// <summary>
  33. /// The module is listed in a configuration file.
  34. /// </summary>
  35. ConfigurationManifest,
  36. /// <summary>
  37. /// The module is discovered by examining the assemblies in a directory.
  38. /// </summary>
  39. DirectorySweep
  40. }
  41. }