Assembly: System.ServiceModel (in system.servicemodel.dll)
/** @property */ public IInstanceProvider get_InstanceProvider () /** @property */ public void set_InstanceProvider (IInstanceProvider value)
public function get InstanceProvider () : IInstanceProvider public function set InstanceProvider (value : IInstanceProvider)
Property ValueAn IInstanceProvider object that controls the creation and destruction of service objects associated with an InstanceContext object.
Implement the IInstanceProvider interface and assign the implementation to the InstanceProvider property to control instances of the service type using a constructor other than the default constructor, for example, to implement a custom instancing mode such as instance pooling.
A service can also be configured to release an instance before the InstanceContext object is closed. This can be configured by using the ReleaseInstanceMode property or by calling the ReleaseServiceInstance method. If this is done, the InstanceContext object calls the ReleaseInstance method. If a new message arrives after the instance has been released, a new instance is created using the GetInstance method.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.