110 references to TransactionFlowOption
System.ServiceModel (92)
System\ServiceModel\Channels\ITransactionChannelManager.cs (3)
16TransactionFlowOption FlowIssuedTokens { get; set; } 17IDictionary<DirectionalAction, TransactionFlowOption> Dictionary { get; } 18TransactionFlowOption GetTransaction(MessageDirection direction, string action);
System\ServiceModel\Channels\TransactionChannel.cs (8)
112TransactionFlowOption option = this.factory.FlowIssuedTokens; 118if (option == TransactionFlowOption.NotAllowed) 130void ReadTransactionFromMessage(Message message, TransactionFlowOption txFlowOption) 147else if (txFlowOption == TransactionFlowOption.Mandatory) 157TransactionFlowOption txFlowOption = this.factory.GetTransaction(direction, message.Headers.Action); 166TransactionFlowOption txFlowOption = this.factory.GetTransaction(direction, message.Headers.Action); 180void WriteTransactionToMessage(Message message, TransactionFlowOption txFlowOption) 195else if (txFlowOption == TransactionFlowOption.Mandatory)
System\ServiceModel\Channels\TransactionChannelFactory.cs (8)
15TransactionFlowOption flowIssuedTokens; 17Dictionary<DirectionalAction, TransactionFlowOption> dictionary; 24Dictionary<DirectionalAction, TransactionFlowOption> dictionary, 49public TransactionFlowOption FlowIssuedTokens 64public IDictionary<DirectionalAction, TransactionFlowOption> Dictionary 69public TransactionFlowOption GetTransaction(MessageDirection direction, string action) 71TransactionFlowOption txOption; 80return TransactionFlowOption.NotAllowed;
System\ServiceModel\Channels\TransactionChannelListener.cs (8)
16TransactionFlowOption flowIssuedTokens; 17Dictionary<DirectionalAction, TransactionFlowOption> dictionary; 21public TransactionChannelListener(TransactionProtocol transactionProtocol, IDefaultCommunicationTimeouts timeouts, Dictionary<DirectionalAction, TransactionFlowOption> dictionary, IChannelListener<TChannel> innerListener) 46public TransactionFlowOption FlowIssuedTokens 58public IDictionary<DirectionalAction, TransactionFlowOption> Dictionary 63public TransactionFlowOption GetTransaction(MessageDirection direction, string action) 65TransactionFlowOption txFlow; 73return TransactionFlowOption.NotAllowed;
System\ServiceModel\Channels\TransactionFlowBindingElement.cs (29)
19TransactionFlowOption issuedTokens; 40this.issuedTokens = transactions ? TransactionFlowOption.Allowed : TransactionFlowOption.NotAllowed; 74this.issuedTokens = value ? TransactionFlowOption.Allowed : TransactionFlowOption.NotAllowed; 78internal TransactionFlowOption IssuedTokens 96bool IsFlowEnabled(Dictionary<DirectionalAction, TransactionFlowOption> dictionary) 98if (this.issuedTokens != TransactionFlowOption.NotAllowed) 108foreach (TransactionFlowOption option in dictionary.Values) 110if (option != TransactionFlowOption.NotAllowed) 121if (this.issuedTokens != TransactionFlowOption.NotAllowed) 136if (parameter.Transactions != TransactionFlowOption.NotAllowed) 167internal static void ValidateOption(TransactionFlowOption opt) 215Dictionary<DirectionalAction, TransactionFlowOption> dictionary = GetDictionary(context); 222if (this.issuedTokens == TransactionFlowOption.NotAllowed) 247Dictionary<DirectionalAction, TransactionFlowOption> dictionary = GetDictionary(context); 254if (this.issuedTokens == TransactionFlowOption.NotAllowed) 280Dictionary<DirectionalAction, TransactionFlowOption> GetDictionary(BindingContext context) 282Dictionary<DirectionalAction, TransactionFlowOption> dictionary = 283context.BindingParameters.Find<Dictionary<DirectionalAction, TransactionFlowOption>>(); 285dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>(); 326if (this.Transactions || (this.IssuedTokens != TransactionFlowOption.NotAllowed)) 341if (this.IssuedTokens != TransactionFlowOption.NotAllowed) 363XmlElement GetAssertion(XmlDocument doc, TransactionFlowOption option, string prefix, string name, string ns, string policyNs) 371case TransactionFlowOption.NotAllowed: 375case TransactionFlowOption.Allowed: 395case TransactionFlowOption.Mandatory: 423TransactionFlowOption txFlowOption = contextParam == null ? TransactionFlowOption.NotAllowed : contextParam.Transactions;
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (11)
43TransactionFlowOption agreedTransactions = TransactionFlowOption.NotAllowed; 60TransactionFlowOption txFlow = GetOption(element, true); 76TransactionFlowOption txFlow = GetOption(element, true); 92TransactionFlowOption txFlow = GetOption(element, false); 127void UpdateTransactionFlowAtribute(OperationDescription operation, TransactionFlowOption txFlow) 133static void TrackAgreement(ref bool everyoneAgrees, TransactionFlowOption option, 134ref TransactionFlowOption agreedOption, ref bool anOperationCares) 167TransactionFlowOption GetOption(XmlElement elem, bool useLegacyNs) 173return TransactionFlowOption.Allowed; 175return TransactionFlowOption.Mandatory;
System\ServiceModel\Channels\TransportDefaults.cs (2)
21internal const TransactionFlowOption IssuedTokens = TransactionFlowOption.NotAllowed;
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
156operation.Behaviors.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
System\ServiceModel\Description\ServiceContractGenerator.cs (2)
869if (attr != null && attr.Transactions != TransactionFlowOption.NotAllowed) 880attrDecl.Arguments.Add(new CodeAttributeArgument(ServiceContractGenerator.GetEnumReference<TransactionFlowOption>(attr.Transactions)));
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (3)
37if (transactionFlow != null && transactionFlow.Transactions == TransactionFlowOption.Mandatory) 264TransactionFlowOption transactions; 271transactions = TransactionFlowOption.NotAllowed;
System\ServiceModel\TransactionFlowAttribute.cs (10)
17TransactionFlowOption transactions; 19public TransactionFlowAttribute(TransactionFlowOption transactions) 26public TransactionFlowOption Transactions 35MessageDirection direction, TransactionFlowOption option) 37Dictionary<DirectionalAction, TransactionFlowOption> dictionary = EnsureDictionary(parameters); 50static Dictionary<DirectionalAction, TransactionFlowOption> EnsureDictionary(BindingParameterCollection parameters) 52Dictionary<DirectionalAction, TransactionFlowOption> dictionary = 53parameters.Find<Dictionary<DirectionalAction, TransactionFlowOption>>(); 56dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>(); 64Dictionary<DirectionalAction, TransactionFlowOption> dictionary = EnsureDictionary(parameters);
System\ServiceModel\TransactionFlowOption.cs (7)
15public static bool IsDefined(TransactionFlowOption option) 17return (option == TransactionFlowOption.NotAllowed || 18option == TransactionFlowOption.Allowed || 19option == TransactionFlowOption.Mandatory); 22internal static bool AllowedOrRequired(TransactionFlowOption option) 24return (option == TransactionFlowOption.Allowed || 25option == TransactionFlowOption.Mandatory);
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\ContractInferenceHelper.cs (4)
172serviceEndpoint.Contract.Operations[0].Behaviors.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed)); 201operation.Behaviors.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed)); 450if (transactionFlowAttribute.Transactions != TransactionFlowOption.Allowed) 459operationDescription.Behaviors.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
System\ServiceModel\Activities\IWorkflowInstanceManagement.cs (6)
82[TransactionFlow(TransactionFlowOption.Allowed)] 93[TransactionFlow(TransactionFlowOption.Allowed)] 104[TransactionFlow(TransactionFlowOption.Allowed)] 115[TransactionFlow(TransactionFlowOption.Allowed)] 126[TransactionFlow(TransactionFlowOption.Allowed)] 153[TransactionFlow(TransactionFlowOption.Allowed)]
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (1)
45if (transactionFlow != null && transactionFlow.Transactions != TransactionFlowOption.NotAllowed)
System\ServiceModel\Activities\WorkflowService.cs (2)
1115if (transactionFlowAttribute.Transactions == TransactionFlowOption.Mandatory) 1128else if (transactionFlowAttribute.Transactions == TransactionFlowOption.NotAllowed)
System.ServiceModel.Routing (4)
System\ServiceModel\Routing\GenericTransactionFlowAttribute.cs (1)
17public GenericTransactionFlowAttribute(TransactionFlowOption flowOption)
System\ServiceModel\Routing\IDuplexRouterCallback.cs (1)
15[GenericTransactionFlow(TransactionFlowOption.Allowed)]
System\ServiceModel\Routing\IDuplexSessionRouter.cs (1)
15[GenericTransactionFlow(TransactionFlowOption.Allowed)]
System\ServiceModel\Routing\IRequestReplyRouter.cs (1)
15[GenericTransactionFlow(TransactionFlowOption.Allowed)]
System.WorkflowServices (1)
System\ServiceModel\Description\DurableServiceAttribute.cs (1)
324if (transactionBehavior.Transactions == TransactionFlowOption.Mandatory)