2
0

TransactionFlowOption.cs 979 B

12345678910111213141516171819202122232425262728
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel
  5. {
  6. public enum TransactionFlowOption
  7. {
  8. NotAllowed,
  9. Allowed,
  10. Mandatory,
  11. }
  12. static class TransactionFlowOptionHelper
  13. {
  14. public static bool IsDefined(TransactionFlowOption option)
  15. {
  16. return (option == TransactionFlowOption.NotAllowed ||
  17. option == TransactionFlowOption.Allowed ||
  18. option == TransactionFlowOption.Mandatory);
  19. //option == TransactionFlowOption.Ignore);
  20. }
  21. internal static bool AllowedOrRequired(TransactionFlowOption option)
  22. {
  23. return (option == TransactionFlowOption.Allowed ||
  24. option == TransactionFlowOption.Mandatory);
  25. }
  26. }
  27. }