Export (0) Print
Expand All

ServiceHost.SingletonInstance Property

Gets the singleton instance of the hosted service.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

member SingletonInstance : Object with get

Property Value

Type: System.Object
The hosted service object.

Use the ServiceHost(Object, Uri[]) constructor to initialize a singleton instance of the service to be hosted when you want to control the instance of the service that is used.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft