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