139 references to Description
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
131typedServiceHost.Description.Behaviors.Remove(typeof(ServiceMetadataBehavior));
System.ServiceModel (69)
System\ServiceModel\Administration\ServiceInfo.cs (5)
26this.behaviors = service.Description.Behaviors; 27this.serviceName = service.Description.Name; 28this.endpoints = new EndpointInfoCollection(service.Description.Endpoints, this.ServiceName); 33get { return this.service.Description.ConfigurationName; } 71get { return this.service.Description.Namespace; }
System\ServiceModel\Channels\PeerService.cs (3)
88this.serviceHost.Description.Behaviors.Add(throttle); 189this.serviceHost.Description.Endpoints.Clear(); 206this.config.SecurityManager.ApplyServiceSecurity(this.serviceHost.Description);
System\ServiceModel\ComIntegration\ComPlusServiceHost.cs (2)
74dispatcherBuilder.InitializeServiceHost(this.Description, this); 91SR.TraceCodeComIntegrationServiceHostStartedServiceDetails, this.info, this.Description);
System\ServiceModel\Description\DispatcherBuilder.cs (2)
605foreach (IServiceBehavior behavior in serviceHost.Description.Behaviors) 607behavior.AddBindingParameters(serviceHost.Description, serviceHost, endpoints, parameters);
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\Diagnostics\ServiceModelPerformanceCounters.cs (2)
52PerformanceCountersFactory.CreateOperationCounters(serviceHost.Description.Name, contractDescription.Name, opDescription.Name, endpointDispatcher.PerfCounterBaseId); 67EndpointPerformanceCountersBase endpointCounters = PerformanceCountersFactory.CreateEndpointCounters(serviceHost.Description.Name, contractDescription.Name, endpointDispatcher.PerfCounterBaseId);
System\ServiceModel\Dispatcher\TransactionBehavior.cs (2)
532SR.GetString(SR.SFxTransactionInvalidSetTransactionComplete, rpc.Operation.Name, rpc.Host.Description.Name))); 549SR.GetString(SR.SFxMultiSetTransactionComplete, rpc.Operation.Name, rpc.Host.Description.Name)));
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (3)
551OperationContext.Current.Host.Description != null && 552OperationContext.Current.Host.Description.Behaviors != null) 554serviceCredentials = OperationContext.Current.Host.Description.Behaviors.Find<ServiceCredentials>();
System\ServiceModel\Security\WSTrustServiceContract.cs (3)
154OperationContext.Current.Host.Description != null) 156ServiceCredentials serviceCreds = OperationContext.Current.Host.Description.Behaviors.Find<ServiceCredentials>(); 673ServiceDebugBehavior debugBehavior = OperationContext.Current.Host.Description.Behaviors.Find<ServiceDebugBehavior>();
System\ServiceModel\Security\WSTrustServiceHost.cs (4)
99ServiceMetadataBehavior metadataBehavior = Description.Behaviors.Find<ServiceMetadataBehavior>(); 103Description.Behaviors.Add(metadataBehavior); 108bool isMexEndpointAlreadyAdded = (Description.Endpoints.Find(typeof(IMetadataExchange)) != null); 166if (Description.Endpoints.Count == 0)
System\ServiceModel\ServiceConfiguration.cs (2)
35return this.host.Description; 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("contractType", SR.GetString(SR.SFxMethodNotSupportedByType2, this.host.Description.ServiceType, contractType));
System\ServiceModel\ServiceHost.cs (38)
88if (this.Description == null) 94return EnsureAuthorization(this.Description); 107if (this.Description == null) 113return EnsureAuthentication(this.Description); 188if (this.Description == null) 194return EnsureCredentials(this.Description); 293foreach (ServiceEndpoint endpoint in this.Description.Endpoints) 364if (this.Description == null) 372ContractDescription contract = configLoader.LookupContract(implementedContract, this.Description.Name); 375this.Description.Endpoints.Add(serviceEndpoint); 397if (this.Description == null) 416loader.LookupContract(endpoint.Contract.ConfigurationName, this.Description.Name); 418this.Description.Endpoints.Add(endpoint); 464if (this.Description == null) 472LoadConfigurationSectionInternal(configLoader, this.Description, this.Description.ConfigurationName); 474EnsureAuthenticationAuthorizationDebug(this.Description); 540if (this.Description == null) 545if (this.Description.Endpoints.Count == 0) 771if (this.Description == null) 777LoadConfigurationSectionInternal(configLoader, this.Description, serviceSection); 858if (ManagementExtension.IsEnabled && null != this.Description) 999foreach (ServiceEndpoint serviceEndpoint in this.Description.Endpoints) 1049if (this.Description != null) 1081TelemetryTraceLogging.LogSeriveKPIData(this.Description); 1311if (ManagementExtension.IsEnabled && null != serviceHost.Description) 1773ReflectedAndBehaviorContractCollection reflectedAndBehaviorContracts = new ReflectedAndBehaviorContractCollection(this.reflectedContracts, this.Description.Behaviors); 1828Type serviceType = this.Description.ServiceType; 1836LoadHostConfigurationInternal(configLoader, this.Description, this.Description.ConfigurationName); 1883if (this.Description == null) 1891LoadConfigurationSectionExceptHostInternal(configLoader, this.Description, this.Description.ConfigurationName); 1892EnsureAuthenticationAuthorizationDebug(this.Description); 1898if (this.Description == null) 1907ServiceElement serviceElement = configLoader.LookupService(this.Description.ConfigurationName, servicesSection); 1908configLoader.LoadServiceDescription(this, this.Description, serviceElement, this.LoadConfigurationSectionHelper, skipHost: true); 1910EnsureAuthenticationAuthorizationDebug(this.Description);
System.ServiceModel.Activation (15)
System\ServiceModel\Activation\ApplyHostConfigurationBehavior.cs (4)
22if (service.Description.Endpoints != null && ServiceHostingEnvironment.MultipleSiteBindingsEnabled) 65foreach (ServiceEndpoint endpoint in service.Description.Endpoints) 84ServiceDebugBehavior debugBehavior = service.Description.Behaviors.Find<ServiceDebugBehavior>(); 97ServiceMetadataBehavior metadataBehavior = service.Description.Behaviors.Find<ServiceMetadataBehavior>();
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (2)
191string serviceName = (host.Description != null) ? host.Description.Name : string.Empty;
System\ServiceModel\ServiceHostingEnvironment.cs (9)
924if (null != host.Description.ServiceType) 926serviceName = host.Description.ServiceType.FullName; 930serviceName = host.Description.Namespace + host.Description.Name; 939string hostReference = string.Format(CultureInfo.InvariantCulture, "{0}{1}|{2}", ServiceHostingEnvironment.SiteName, servicePath, host.Description.Name); 1388if (service.Description != null) 1390service.Description.Behaviors.Add(new ApplyHostConfigurationBehavior()); 1392service.Description.Behaviors.Find<UseRequestHeadersForMetadataAddressBehavior>() == null) 1394service.Description.Behaviors.Add(new UseRequestHeadersForMetadataAddressBehavior());
System.ServiceModel.Activities (28)
System\ServiceModel\Activities\Description\ControlOperationBehavior.cs (1)
44foreach (ServiceEndpoint endpointToMatch in serviceHost.Description.Endpoints)
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (1)
120ServiceDescription description = endpointDispatcher.ChannelDispatcher.Host.Description;
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 (3)
64|| dispatchOperation.Parent.ChannelDispatcher.Host.Description == null 65|| dispatchOperation.Parent.ChannelDispatcher.Host.Description.Behaviors == null) 80foreach (ServiceEndpoint endpointToMatch in serviceHost.Description.Endpoints)
System\ServiceModel\Activities\Description\WorkflowServiceBehavior.cs (1)
100foreach (ServiceEndpoint endpointToMatch in serviceHost.Description.Endpoints)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (5)
150ServiceThrottlingBehavior serviceThrottlingBehavior = Host.Description.Behaviors.Find<ServiceThrottlingBehavior>(); 259foreach (IServiceBehavior behavior in Host.Description.Behaviors) 323foreach (ServiceEndpoint endpoint in this.Host.Description.Endpoints) 357string siteName = this.Host.OverrideSiteName ? this.Host.Description.Name : virtualPathExtension.SiteName; 418WorkflowServiceBehavior workflowServiceBehavior = Host.Description.Behaviors.Find<WorkflowServiceBehavior>();
System\ServiceModel\Activities\WorkflowServiceHost.cs (14)
342if (!this.Description.Behaviors.Contains(mexBehaviorType)) 345SR.ServiceMetadataBehaviorNotFoundForServiceMetadataEndpoint(this.Description.Name))); 362base.Description.Endpoints.Add(serviceEndpoint); 489if (base.Description != null) 495this.DurableInstancingOptions.ScopeName = XNamespace.Get(this.Description.Namespace).GetName(this.Description.Name); 503this.ServiceName = XNamespace.Get(this.Description.Namespace).GetName(this.Description.Name); 628Fx.Assert(this.Description != null, "ServiceDescription cannot be null"); 631foreach (ServiceEndpoint serviceEndpoint in this.Description.Endpoints) 663if (this.serviceDefinition.AllowBufferedReceive && !this.Description.Behaviors.Contains(bufferedReceiveServiceBehaviorType)) 665this.Description.Behaviors.Add(new BufferedReceiveServiceBehavior()); 687string.Format(CultureInfo.InvariantCulture, "/{0}{1}", this.Description.Name, virtualDirectoryPath)); 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)
199AddContractTypeScopes(endpointDiscoveryMetadata, endpointDispatcher.ChannelDispatcher.Host.Description); 284ServiceDescription description = endpointDispatcher.ChannelDispatcher.Host.Description;
System.ServiceModel.Web (15)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (2)
261foreach (ServiceEndpoint serviceEndpoint in host.Description.Endpoints) 266new InvalidOperationException(SR2.GetString(SR2.JsonNoEndpointAtMetadataAddress, this.GetType().ToString(), serviceEndpoint.Address, serviceEndpoint.Name, host.Description.Name)));
System\ServiceModel\Web\AutomaticEndpointGenerator.cs (1)
53ServiceEndpoint serviceEndpoint = configLoader.LookupEndpoint(serviceEndpointElement, null, serviceHost, serviceHost.Description, true);
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
162foreach (ServiceEndpoint endpoint in this.operationContext.Host.Description.Endpoints)
System\ServiceModel\Web\WebServiceHost.cs (10)
49if (host.Description.Endpoints != null 50&& host.Description.Endpoints.Count > 0 89foreach (ServiceEndpoint endpoint in host.Description.Endpoints) 135ServiceEndpoint automaticEndpoint = configLoader.LookupEndpoint(serviceEndpointElement, null, host, host.Description, true /*omitSettingEndpointAddress*/); 204if (this.Description == null) 210ServiceDebugBehavior sdb = this.Description.Behaviors.Find<ServiceDebugBehavior>(); 216ServiceMetadataBehavior smb = this.Description.Behaviors.Find<ServiceMetadataBehavior>(); 223AddAutomaticWebHttpBindingEndpoints(this, this.ImplementedContracts, SR2.GetString(SR2.HttpTransferServiceHostMultipleContracts, this.Description.Name), SR2.GetString(SR2.HttpTransferServiceHostNoContract, this.Description.Name), WebHttpEndpointKind); 226foreach (ServiceEndpoint serviceEndpoint in this.Description.Endpoints)
System\ServiceModel\WebScriptServiceHost.cs (1)
31foreach (ServiceEndpoint endpoint in this.Description.Endpoints)
System.WorkflowServices (8)
System\ServiceModel\Description\WorkflowOperationBehavior.cs (3)
62|| dispatch.Parent.ChannelDispatcher.Host.Description == null 63|| dispatch.Parent.ChannelDispatcher.Host.Description.Behaviors == null) 68WorkflowRuntimeBehavior workflowRuntimeBehavior = dispatch.Parent.ChannelDispatcher.Host.Description.Behaviors.Find<WorkflowRuntimeBehavior>();
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());