140 references to Behaviors
System.ServiceModel (59)
System\ServiceModel\Administration\ContractInstanceProvider.cs (1)
103
FillBehaviorsInfo(operation, operationDescription.
Behaviors
);
System\ServiceModel\Channels\TransactionFlowBindingElement.cs (2)
133
TransactionFlowAttribute parameter = operation.
Behaviors
.Find<TransactionFlowAttribute>();
422
TransactionFlowAttribute contextParam = operation.
Behaviors
.Find<TransactionFlowAttribute>();
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (2)
129
operation.
Behaviors
.Remove<TransactionFlowAttribute>();
130
operation.
Behaviors
.Add(new TransactionFlowAttribute(txFlow));
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (4)
149
operation.
Behaviors
.Add(contractSerializer);
152
operation.
Behaviors
.Add(new OperationInvokerBehavior());
156
operation.
Behaviors
.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
163
operation.
Behaviors
.Add(operationBehaviorAttribute);
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
77
DataContractSerializerOperationBehavior DataContractSerializerOperationBehavior = context.Operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>() as DataContractSerializerOperationBehavior;
System\ServiceModel\Description\DispatcherBuilder.cs (7)
232
foreach (IOperationBehavior iob in op.
Behaviors
)
652
if (operation.
Behaviors
.Find<ReceiveContextEnabledAttribute>() != null)
758
OperationBehaviorAttribute operationBehavior = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
1096
for (int j = 0; j < operation.
Behaviors
.Count; j++)
1098
IOperationBehavior behavior = operation.
Behaviors
[j];
1121
for (int j = 0; j < operation.
Behaviors
.Count; j++)
1123
IOperationBehavior behavior = operation.
Behaviors
[j];
System\ServiceModel\Description\MessageContractExporter.cs (2)
753
DataContractSerializerOperationBehavior dataContractSerializerBehavior = operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
765
XmlSerializerOperationBehavior xmlSerializerBehavior = operation.
Behaviors
.Find<XmlSerializerOperationBehavior>();
System\ServiceModel\Description\MessageContractImporter.cs (6)
84
return (operation.
Behaviors
.Find<IOperationContractGenerationExtension>() != null);
295
operation.
Behaviors
.Add(CurrentSchemaImporter.GetOperationGenerator());
1882
DataContractSerializerOperationBehavior operationBehavior = operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
1886
operation.
Behaviors
.Add(operationBehavior);
2128
XmlSerializerOperationBehavior operationBehavior = operation.
Behaviors
.Find<XmlSerializerOperationBehavior>();
2135
operation.
Behaviors
.Add(operationBehavior);
System\ServiceModel\Description\NetDataContractSerializerOperationBehavior.cs (3)
31
DataContractSerializerOperationBehavior dataContractSerializerOperationBehavior = operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
36
operation.
Behaviors
.Remove(dataContractSerializerOperationBehavior);
37
operation.
Behaviors
.Add(netDataContractSerializerOperationBehavior);
System\ServiceModel\Description\OperationDescription.cs (1)
69
get { return this.
Behaviors
; }
System\ServiceModel\Description\ServiceContractGenerator.cs (2)
631
foreach (IOperationBehavior behavior in operation.
Behaviors
)
868
System.ServiceModel.TransactionFlowAttribute attr = context.Operation.
Behaviors
.Find<System.ServiceModel.TransactionFlowAttribute>();
System\ServiceModel\Description\ServiceEndpoint.cs (2)
263
for (int k = 0; k < op.
Behaviors
.Count; k++)
265
IOperationBehavior iob = op.
Behaviors
[k];
System\ServiceModel\Description\ServiceMetadataBehavior.cs (1)
441
operation.
Behaviors
.Find<OperationBehaviorAttribute>().Impersonation = ImpersonationOption.Allowed;
System\ServiceModel\Description\TypeLoader.cs (11)
221
operationDescription.
Behaviors
.Add(new OperationInvokerBehavior());
238
opDesc.
Behaviors
.Add(toAdd[j]);
245
implType, opDesc.
Behaviors
,
259
targetIface, opDesc.
Behaviors
,
276
OperationBehaviorAttribute operationBehavior = opDesc.
Behaviors
.Find<OperationBehaviorAttribute>();
280
opDesc.
Behaviors
.Add(operationBehavior);
302
operationDescription.
Behaviors
.Add(new DataContractSerializerOperationBehavior(operationDescription, dataContractFormatAttribute, true));
303
operationDescription.
Behaviors
.Add(new DataContractSerializerOperationGenerator());
574
if (opDesc.
Behaviors
.Contains(t))
576
opDesc.
Behaviors
.Remove(t);
578
opDesc.
Behaviors
.Add(behavior);
System\ServiceModel\Description\WsdlContractConversionContext.cs (1)
69
Collection<IWsdlExportExtension> extensions = operation.
Behaviors
.FindAll<IWsdlExportExtension>();
System\ServiceModel\Description\WsdlEndpointConversionContext.cs (1)
90
Collection<IWsdlExportExtension> extensions = operation.
Behaviors
.FindAll<IWsdlExportExtension>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
105
operation.
Behaviors
.Add(new XmlSerializerOperationBehavior(operationReflector, builtInOperationBehavior));
106
operation.
Behaviors
.Add(new XmlSerializerOperationGenerator(new XmlSerializerImportOptions()));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
138
XmlSerializerOperationBehavior xmlSerializerOperationBehavior = context.Operation.
Behaviors
.Find<XmlSerializerOperationBehavior>() as XmlSerializerOperationBehavior;
System\ServiceModel\Dispatcher\DataContractSerializerServiceBehavior.cs (1)
82
foreach (IOperationBehavior ob in operation.
Behaviors
)
System\ServiceModel\Dispatcher\OperationInvokerBehavior.cs (1)
45
OperationBehaviorAttribute operationBehaviorAttribue = description.
Behaviors
.Find<OperationBehaviorAttribute>();
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (2)
293
OperationBehaviorAttribute operationBehavior = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
1057
OperationBehaviorAttribute operationBehavior = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (5)
36
TransactionFlowAttribute transactionFlow = operationDescription.
Behaviors
.Find<TransactionFlowAttribute>();
263
TransactionFlowAttribute tfbp = operation.
Behaviors
.Find<TransactionFlowAttribute>();
300
OperationBehaviorAttribute attribute = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
325
OperationBehaviorAttribute attribute = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
345
OperationBehaviorAttribute attribute = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
System.ServiceModel.Activities (39)
System\ServiceModel\Activities\ClientOperationFormatterProvider.cs (2)
49
if (operationDescription.
Behaviors
.Count == 0)
56
foreach (IOperationBehavior operationBehavior in operationDescription.
Behaviors
)
System\ServiceModel\Activities\ContractInferenceHelper.cs (17)
172
serviceEndpoint.Contract.Operations[0].
Behaviors
.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
201
operation.
Behaviors
.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
432
OperationBehaviorAttribute attribute = operationDescription.
Behaviors
.Find<OperationBehaviorAttribute>();
445
operationDescription.
Behaviors
.Add(attr);
447
TransactionFlowAttribute transactionFlowAttribute = operationDescription.
Behaviors
.Find<TransactionFlowAttribute>();
459
operationDescription.
Behaviors
.Add(new TransactionFlowAttribute(TransactionFlowOption.Allowed));
484
if (operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>() != null)
489
operation.
Behaviors
.Add(new DataContractSerializerOperationBehavior(operation, DataContractFormatAttribute));
490
if (!operation.
Behaviors
.Contains(typeof(DataContractSerializerOperationGenerator)))
492
operation.
Behaviors
.Add(new DataContractSerializerOperationGenerator());
498
if (operation.
Behaviors
.Find<XmlSerializerOperationBehavior>() != null)
503
operation.
Behaviors
.Add(new XmlSerializerOperationBehavior(operation, XmlSerializerFormatAttribute));
504
if (!operation.
Behaviors
.Contains(typeof(XmlSerializerOperationGenerator)))
506
operation.
Behaviors
.Add(new XmlSerializerOperationGenerator(new XmlSerializerImportOptions()));
512
KeyedByTypeCollection<IOperationBehavior> behaviors = operation.
Behaviors
;
624
KeyedByTypeCollection<IOperationBehavior> behaviors = operation.
Behaviors
;
639
KeyedByTypeCollection<IOperationBehavior> behaviors = operation.
Behaviors
;
System\ServiceModel\Activities\Description\BufferedReceiveServiceBehavior.cs (2)
76
ReceiveContextEnabledAttribute receiveContextEnabled = operation.
Behaviors
.Find<ReceiveContextEnabledAttribute>();
102
if (operation.
Behaviors
.Find<WorkflowOperationBehavior>() == null)
System\ServiceModel\Activities\Description\WorkflowContractBehaviorAttribute.cs (2)
34
if (operation.
Behaviors
.Find<ControlOperationBehavior>() == null)
36
operation.
Behaviors
.Add(new ControlOperationBehavior(true));
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
205
OperationBehaviorAttribute operationAttribute = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
System\ServiceModel\Activities\InternalSendMessage.cs (4)
3271
if (o1.
Behaviors
.Count == o2.
Behaviors
.Count)
3274
TransactionFlowAttribute t1 = o1.
Behaviors
.Find<TransactionFlowAttribute>();
3275
TransactionFlowAttribute t2 = o2.
Behaviors
.Find<TransactionFlowAttribute>();
System\ServiceModel\Activities\Receive.cs (1)
514
if (operation.
Behaviors
.Contains(typeof(XmlSerializerOperationBehavior)))
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (2)
164
operationDescription.
Behaviors
.Add(new ControlOperationBehavior(false));
169
OperationBehaviorAttribute operationAttribute = operationDescription.
Behaviors
.Find<OperationBehaviorAttribute>();
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (4)
44
TransactionFlowAttribute transactionFlow = operationDescription.
Behaviors
.Find<TransactionFlowAttribute>();
47
OperationBehaviorAttribute operationAttribute = operationDescription.
Behaviors
.Find<OperationBehaviorAttribute>();
107
if (operation.
Behaviors
.Find<WorkflowHostingOperationBehavior>() == null)
109
operation.
Behaviors
.Add(new WorkflowHostingOperationBehavior());
System\ServiceModel\Activities\WorkflowService.cs (2)
1095
TransactionFlowAttribute transactionFlowAttribute = targetOperation.
Behaviors
.Find<TransactionFlowAttribute>();
1140
SerializerOption targetSerializerOption = targetOperation.
Behaviors
.Contains(typeof(XmlSerializerOperationBehavior)) ?
System\ServiceModel\Activities\WorkflowServiceHost.cs (2)
698
ReceiveContextEnabledAttribute behavior = operation.
Behaviors
.Find<ReceiveContextEnabledAttribute>();
701
operation.
Behaviors
.Add(new ReceiveContextEnabledAttribute() { ManualControl = true });
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\DiscoveryUtility.cs (2)
57
operationBehaviorAttribute = operationDescription.
Behaviors
.Find<OperationBehaviorAttribute>();
61
operationDescription.
Behaviors
.Add(operationBehaviorAttribute);
System.ServiceModel.Routing (4)
System\ServiceModel\Routing\RoutingBehavior.cs (4)
194
if (operation.
Behaviors
.Find<TransactedReceiveOperationBehavior>() == null)
196
operation.
Behaviors
.Add(new TransactedReceiveOperationBehavior());
211
operation.
Behaviors
.Add(rcEnabled);
263
if (operationDescription.
Behaviors
.Find<ReceiveContextEnabledAttribute>() == null)
System.ServiceModel.Web (28)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
108
bool useHttpGet = operation.
Behaviors
.Find<WebGetAttribute>() != null;
System\ServiceModel\Description\WebHttpBehavior.cs (17)
360
WebGetAttribute wga = od.
Behaviors
.Find<WebGetAttribute>();
361
WebInvokeAttribute wia = od.
Behaviors
.Find<WebInvokeAttribute>();
380
WebGetAttribute wga = od.
Behaviors
.Find<WebGetAttribute>();
381
WebInvokeAttribute wia = od.
Behaviors
.Find<WebInvokeAttribute>();
447
DataContractSerializerOperationBehavior dcsob = od.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
477
WebGetAttribute wga = od.
Behaviors
.Find<WebGetAttribute>();
478
WebInvokeAttribute wia = od.
Behaviors
.Find<WebInvokeAttribute>();
496
DataContractSerializerOperationBehavior dcsob = od.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
516
XmlSerializerOperationBehavior xsob = od.
Behaviors
.Find<XmlSerializerOperationBehavior>();
1067
DataContractSerializerOperationBehavior dcsob = od.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
1088
XmlSerializerOperationBehavior xsob = od.
Behaviors
.Find<XmlSerializerOperationBehavior>();
1135
WebGetAttribute wga = od.
Behaviors
.Find<WebGetAttribute>();
1136
WebInvokeAttribute wia = od.
Behaviors
.Find<WebInvokeAttribute>();
1154
WebGetAttribute wga = od.
Behaviors
.Find<WebGetAttribute>();
1155
WebInvokeAttribute wia = od.
Behaviors
.Find<WebInvokeAttribute>();
1238
XmlSerializerOperationBehavior xsob = operationDescription.
Behaviors
.Find<XmlSerializerOperationBehavior>();
1259
XmlSerializerOperationBehavior xsob = od.
Behaviors
.Find<XmlSerializerOperationBehavior>();
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (3)
158
if (operation.
Behaviors
.Find<XmlSerializerOperationBehavior>() != null)
171
WebGetAttribute webGetAttribute = operation.
Behaviors
.Find<WebGetAttribute>();
177
WebInvokeAttribute webInvokeAttribute = operation.
Behaviors
.Find<WebInvokeAttribute>();
System\ServiceModel\Dispatcher\HelpPage.cs (2)
244
if (od.
Behaviors
.Contains(typeof(WebGetAttribute)))
357
bool usesXmlSerializer = od.
Behaviors
.Contains(typeof(XmlSerializerOperationBehavior));
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
39
this.dataContractSerializerOperationBehavior = this.operationDescription.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (3)
245
DataContractSerializerOperationBehavior dcsob = operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
250
XmlSerializerOperationBehavior xsob = operation.
Behaviors
.Find<XmlSerializerOperationBehavior>();
260
DataContractSerializerOperationBehavior dcsob = operation.
Behaviors
.Find<DataContractSerializerOperationBehavior>();
System\ServiceModel\Web\AspNetCacheProfileAttribute.cs (1)
42
if (operationDescription.
Behaviors
.Find<WebGetAttribute>() == null)
System.WorkflowServices (8)
System\ServiceModel\Description\DurableServiceAttribute.cs (5)
200
if (!opDescription.
Behaviors
.Contains(typeof(DurableOperationAttribute)))
202
opDescription.
Behaviors
.Add(DurableOperationAttribute.DefaultInstance);
272
operation.
Behaviors
.Find<DurableOperationAttribute>();
310
OperationBehaviorAttribute operationBehavior = operation.
Behaviors
.Find<OperationBehaviorAttribute>();
320
TransactionFlowAttribute transactionBehavior = operation.
Behaviors
.Find<TransactionFlowAttribute>();
System\Workflow\Activities\ServiceOperationHelpers.cs (3)
297
if (opDescription.
Behaviors
.Find<WorkflowOperationBehavior>() != behavior)
299
opDescription.
Behaviors
.Remove(typeof(WorkflowOperationBehavior));
300
opDescription.
Behaviors
.Add(behavior);