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