110 references to Behaviors
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
131
typedServiceHost.Description.
Behaviors
.Remove(typeof(ServiceMetadataBehavior));
System.ServiceModel (63)
System\ServiceModel\Administration\ServiceInfo.cs (1)
26
this.behaviors = service.Description.
Behaviors
;
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
257
description.
Behaviors
.Add(credManager.CloneForTransport());
System\ServiceModel\Channels\PeerService.cs (1)
88
this.serviceHost.Description.
Behaviors
.Add(throttle);
System\ServiceModel\ComIntegration\ComPlusServiceLoader.cs (6)
64
service.
Behaviors
.Add(new SecurityCookieModeValidator());
68
AspNetCompatibilityRequirementsAttribute aspNetCompatibilityRequirements = service.
Behaviors
.Find<AspNetCompatibilityRequirementsAttribute>();
72
service.
Behaviors
.Add(aspNetCompatibilityRequirements);
80
if (service.
Behaviors
.Contains(typeof(ServiceBehaviorAttribute)))
82
serviceBehavior = (ServiceBehaviorAttribute)service.
Behaviors
[typeof(ServiceBehaviorAttribute)];
87
service.
Behaviors
.Insert(0, serviceBehavior);
System\ServiceModel\Description\ConfigLoader.cs (3)
443
LoadBehaviors<IServiceBehavior>(commonBehaviors.ServiceBehaviors, description.
Behaviors
, true/*commonBehaviors*/);
458
LoadBehaviors<IServiceBehavior>(behaviorElement, description.
Behaviors
, false/*commonBehaviors*/);
464
resolver.AddBehaviorContractsToResolver(description.
Behaviors
);
System\ServiceModel\Description\DispatcherBuilder.cs (7)
198
for (int i = 0; i < description.
Behaviors
.Count; i++)
200
IServiceBehavior iServiceBehavior = description.
Behaviors
[i];
605
foreach (IServiceBehavior behavior in serviceHost.Description.
Behaviors
)
635
ServiceBehaviorAttribute instanceSettings = description.
Behaviors
.Find<ServiceBehaviorAttribute>();
698
foreach (IServiceBehavior behavior in description.
Behaviors
)
823
for (int i = 0; i < description.
Behaviors
.Count; i++)
825
IServiceBehavior serviceBehavior = description.
Behaviors
[i];
System\ServiceModel\Description\ServiceDescription.cs (4)
123
type, serviceDescription.
Behaviors
, ServiceDescription.GetIServiceBehaviorAttributes);
189
ServiceBehaviorAttribute attr = description.
Behaviors
.Find<ServiceBehaviorAttribute>();
194
description.
Behaviors
.Insert(0, attr);
256
description.
Behaviors
.Add((IServiceBehavior)serviceImplementation);
System\ServiceModel\Description\ServiceMetadataBehavior.cs (4)
260
UseRequestHeadersForMetadataAddressBehavior dynamicUpdateBehavior = description.
Behaviors
.Find<UseRequestHeadersForMetadataAddressBehavior>();
364
if (description.
Behaviors
!= null && description.
Behaviors
.Find<ServiceMetadataBehavior>() == null)
374
if (description.
Behaviors
.Find<ServiceMetadataBehavior>() == null)
System\ServiceModel\Description\ServiceMetadataExtension.cs (3)
418
AspNetEnvironment.Current.AddMetadataBindingParameters(listenUriBaseAddress, owner.Description.
Behaviors
, parameters);
453
ServiceDebugBehavior sdb = owner.Description.
Behaviors
.Find<ServiceDebugBehavior>();
457
ServiceBehaviorAttribute sba = owner.Description.
Behaviors
.Find<ServiceBehaviorAttribute>();
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (7)
155
SecurityTokenParameterInclusionModeRule.Validate(sbe, binding, endpoint.Contract, description.
Behaviors
);
274
ServiceAuthorizationBehavior authorizationBehavior = description.
Behaviors
.Find<ServiceAuthorizationBehavior>();
361
ServiceAuthorizationBehavior behavior = description.
Behaviors
.Find<ServiceAuthorizationBehavior>();
965
if (!description.
Behaviors
.Contains(typeof(ServiceCredentials)))
968
ValidateCore(description, description.
Behaviors
.Find<ServiceCredentials>());
982
ServiceAuthorizationBehavior behavior = description.
Behaviors
.Find<ServiceAuthorizationBehavior>();
1018
ServiceCredentials credentials = description.
Behaviors
.Find<ServiceCredentials>();
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (5)
161
ServiceBehaviorAttribute serviceBehavior = service.
Behaviors
.Find<ServiceBehaviorAttribute>();
200
ServiceBehaviorAttribute serviceBehavior = service.
Behaviors
.Find<ServiceBehaviorAttribute>();
222
ServiceBehaviorAttribute attribute = service.
Behaviors
.Find<ServiceBehaviorAttribute>();
312
ServiceBehaviorAttribute attribute = service.
Behaviors
.Find<ServiceBehaviorAttribute>();
372
ServiceBehaviorAttribute attribute = service.
Behaviors
.Find<ServiceBehaviorAttribute>();
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
552
OperationContext.Current.Host.Description.
Behaviors
!= null)
554
serviceCredentials = OperationContext.Current.Host.Description.
Behaviors
.Find<ServiceCredentials>();
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
156
ServiceCredentials serviceCreds = OperationContext.Current.Host.Description.
Behaviors
.Find<ServiceCredentials>();
673
ServiceDebugBehavior debugBehavior = OperationContext.Current.Host.Description.
Behaviors
.Find<ServiceDebugBehavior>();
System\ServiceModel\Security\WSTrustServiceHost.cs (2)
99
ServiceMetadataBehavior metadataBehavior = Description.
Behaviors
.Find<ServiceMetadataBehavior>();
103
Description.
Behaviors
.Add(metadataBehavior);
System\ServiceModel\ServiceHost.cs (15)
575
ServiceAuthorizationBehavior a = description.
Behaviors
.Find<ServiceAuthorizationBehavior>();
580
description.
Behaviors
.Add(a);
589
ServiceAuthenticationBehavior a = description.
Behaviors
.Find<ServiceAuthenticationBehavior>();
594
description.
Behaviors
.Add(a);
602
ServiceDebugBehavior m = description.
Behaviors
.Find<ServiceDebugBehavior>();
607
description.
Behaviors
.Add(m);
616
ServiceCredentials c = description.
Behaviors
.Find<ServiceCredentials>();
621
description.
Behaviors
.Add(c);
690
resolver.AddBehaviorContractsToResolver(this.description == null ? null : this.description.
Behaviors
);
1051
ServiceCredentials c = description.
Behaviors
.Find<ServiceCredentials>();
1059
ServiceAuthorizationBehavior authorization = description.
Behaviors
.Find<ServiceAuthorizationBehavior>();
1067
ServiceAuthenticationBehavior authentication = description.
Behaviors
.Find<ServiceAuthenticationBehavior>();
1773
ReflectedAndBehaviorContractCollection reflectedAndBehaviorContracts = new ReflectedAndBehaviorContractCollection(this.reflectedContracts, this.Description.
Behaviors
);
1962
ServiceBehaviorAttribute serviceBehavior = description.
Behaviors
.Find<ServiceBehaviorAttribute>();
1981
description.
Behaviors
.Add((IServiceBehavior)serviceInstanceUsedAsABehavior);
System.ServiceModel.Activation (8)
System\ServiceModel\Activation\ApplyHostConfigurationBehavior.cs (2)
84
ServiceDebugBehavior debugBehavior = service.Description.
Behaviors
.Find<ServiceDebugBehavior>();
97
ServiceMetadataBehavior metadataBehavior = service.Description.
Behaviors
.Find<ServiceMetadataBehavior>();
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (3)
144
description.
Behaviors
.Add(new HostedBindingBehavior(virtualPathExtension));
171
AspNetCompatibilityRequirementsAttribute aspNetCompatibilityRequirements = description.
Behaviors
.Find<AspNetCompatibilityRequirementsAttribute>();
175
description.
Behaviors
.Add(aspNetCompatibilityRequirements);
System\ServiceModel\ServiceHostingEnvironment.cs (3)
1390
service.Description.
Behaviors
.Add(new ApplyHostConfigurationBehavior());
1392
service.Description.
Behaviors
.Find<UseRequestHeadersForMetadataAddressBehavior>() == null)
1394
service.Description.
Behaviors
.Add(new UseRequestHeadersForMetadataAddressBehavior());
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\Description\WorkflowContractBehaviorAttribute.cs (1)
30
if (dispatchRuntime.ChannelDispatcher.Host.Description.
Behaviors
.Contains(typeof(WorkflowServiceBehavior)))
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (2)
216
ServiceDebugBehavior serviceDebugBehavior = workflowServiceHost.Description.
Behaviors
.Find<ServiceDebugBehavior>();
217
ServiceBehaviorAttribute serviceBehaviorAttribute = workflowServiceHost.Description.
Behaviors
.Find<ServiceBehaviorAttribute>();
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (1)
65
|| dispatchOperation.Parent.ChannelDispatcher.Host.Description.
Behaviors
== null)
System\ServiceModel\Activities\Description\WorkflowServiceBehavior.cs (1)
45
ServiceDebugBehavior serviceDebugBehavior = serviceDescription.
Behaviors
.Find<ServiceDebugBehavior>();
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (3)
150
ServiceThrottlingBehavior serviceThrottlingBehavior = Host.Description.
Behaviors
.Find<ServiceThrottlingBehavior>();
259
foreach (IServiceBehavior behavior in Host.Description.
Behaviors
)
418
WorkflowServiceBehavior workflowServiceBehavior = Host.Description.
Behaviors
.Find<WorkflowServiceBehavior>();
System\ServiceModel\Activities\WorkflowServiceHost.cs (5)
342
if (!this.Description.
Behaviors
.Contains(mexBehaviorType))
451
serviceDescription.
Behaviors
.Add(new WorkflowServiceBehavior(this.workflowDefinitionProvider));
663
if (this.serviceDefinition.AllowBufferedReceive && !this.Description.
Behaviors
.Contains(bufferedReceiveServiceBehaviorType))
665
this.Description.
Behaviors
.Add(new BufferedReceiveServiceBehavior());
714
bool hasBehavior = this.Description.
Behaviors
.Contains(bufferedReceiveServiceBehaviorType);
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\DiscoveryEndpointValidator.cs (1)
33
endpointDispatcher.ChannelDispatcher.Host.Description.
Behaviors
.Find<ServiceDiscoveryBehavior>() == null)
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (2)
285
if (description.
Behaviors
!= null && description.
Behaviors
.Find<ServiceMetadataBehavior>() == null)
System.ServiceModel.Web (2)
System\ServiceModel\Web\WebServiceHost.cs (2)
210
ServiceDebugBehavior sdb = this.Description.
Behaviors
.Find<ServiceDebugBehavior>();
216
ServiceMetadataBehavior smb = this.Description.
Behaviors
.Find<ServiceMetadataBehavior>();
System.WorkflowServices (20)
System\ServiceModel\Description\DescriptionCreator.cs (1)
59
serviceDescription.
Behaviors
.Add(wsb);
System\ServiceModel\Description\DurableServiceAttribute.cs (7)
74
if (serviceDescription.
Behaviors
!= null)
76
providerBehavior = serviceDescription.
Behaviors
.Find<PersistenceProviderBehavior>();
126
if (serviceDescription.
Behaviors
!= null)
128
ServiceBehaviorAttribute serviceBehavior = serviceDescription.
Behaviors
.Find<ServiceBehaviorAttribute>();
135
ServiceDebugBehavior serviceDebugBehavior = serviceDescription.
Behaviors
.Find<ServiceDebugBehavior>();
228
if (serviceDescription.
Behaviors
!= null)
230
ServiceBehaviorAttribute serviceBehavior = serviceDescription.
Behaviors
.Find<ServiceBehaviorAttribute>();
System\ServiceModel\Description\WorkflowOperationBehavior.cs (2)
63
|| dispatch.Parent.ChannelDispatcher.Host.Description.
Behaviors
== null)
68
WorkflowRuntimeBehavior workflowRuntimeBehavior = dispatch.Parent.ChannelDispatcher.Host.Description.
Behaviors
.Find<WorkflowRuntimeBehavior>();
System\ServiceModel\Description\WorkflowServiceBehavior.cs (4)
219
if (description.
Behaviors
== null)
229
WorkflowRuntimeBehavior workflowRuntimeBehavior = description.
Behaviors
.Find<WorkflowRuntimeBehavior>();
234
description.
Behaviors
.Add(workflowRuntimeBehavior);
264
ServiceDebugBehavior serviceDebugBehavior = description.
Behaviors
.Find<ServiceDebugBehavior>();
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (1)
31
if (serviceHostBase.Description.
Behaviors
.Find<ServiceThrottlingBehavior>() == null)
System\ServiceModel\WorkflowServiceHost.cs (4)
124
if (!this.Description.
Behaviors
.Contains(
155
WorkflowRuntimeBehavior workflowRuntimeBehavior = this.Description.
Behaviors
.Find<WorkflowRuntimeBehavior>();
169
if (!this.Description.
Behaviors
.Contains(typeof(WorkflowRuntimeBehavior)))
171
this.Description.
Behaviors
.Add(new WorkflowRuntimeBehavior());
System\Workflow\Activities\WorkflowServiceAttributes.cs (1)
141
WorkflowServiceBehavior workflowServiceBehavior = context.ServiceDescription.
Behaviors
.Find<WorkflowServiceBehavior>();