ConcurrencyMode.cs 704 B

123456789101112131415161718192021222324252627
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel
  5. {
  6. using System;
  7. public enum ConcurrencyMode
  8. {
  9. Single, // This is first so it is ConcurrencyMode.default
  10. Reentrant,
  11. Multiple
  12. }
  13. static class ConcurrencyModeHelper
  14. {
  15. static public bool IsDefined(ConcurrencyMode x)
  16. {
  17. return
  18. x == ConcurrencyMode.Single ||
  19. x == ConcurrencyMode.Reentrant ||
  20. x == ConcurrencyMode.Multiple ||
  21. false;
  22. }
  23. }
  24. }