16 references to IsHosted
System.ServiceModel.Activation (16)
System\ServiceModel\Activation\HostingMessageProperty.cs (1)
27Fx.Assert(ServiceHostingEnvironment.IsHosted, "should only be called in the hosted path");
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
320if (ServiceHostingEnvironment.IsHosted && !ServiceHostingEnvironment.IsConfigurationBased)
System\ServiceModel\ServiceHostingEnvironment.cs (14)
84if (!IsHosted) 99if (!IsHosted) 112if (!IsHosted) 316Fx.Assert(IsHosted, "CurrentVirtualPath should not be called from non web-hosted environment."); 361Fx.Assert(IsHosted, "FullVirtualPath should not be called from non web-hosted environment."); 369Fx.Assert(IsHosted, "XamlFileBaseLocation should not be called from non web-hosted environment."); 377Fx.Assert(IsHosted, "IsConfigurationBased should not be called from non web-hosted environment."); 385Fx.Assert(IsHosted, "GetServiceType should not be called from non web-hosted environment."); 392Fx.Assert(IsHosted, "EnsureWorkflowService should not be called from non web-hosted environment."); 402Fx.Assert(IsHosted, "IsRecycling should not be called from non web-hosted environment."); 418Fx.Assert(IsHosted, "IsConfigurationBased should not be called from non web-hosted environment."); 426Fx.Assert(IsHosted, "IsConfigurationBased should not be called from non web-hosted environment."); 433Fx.Assert(IsHosted, "IsConfigurationBased should not be called from non web-hosted environment."); 584Fx.Assert(IsHosted, "IsSimpleApplicationHost should not be called from non web-hosted environment.");