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