ExtensionMethods.CloneAsNonDisposable(IServiceBroker) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a clone of IServiceBroker that does not implement any other interface including IDisposable. This clone could be used to avoid accidental disposal.
public static Microsoft.ServiceHub.Framework.IServiceBroker CloneAsNonDisposable (this Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker);
static member CloneAsNonDisposable : Microsoft.ServiceHub.Framework.IServiceBroker -> Microsoft.ServiceHub.Framework.IServiceBroker
<Extension()>
Public Function CloneAsNonDisposable (serviceBroker As IServiceBroker) As IServiceBroker
Parameters
- serviceBroker
- IServiceBroker
Service broker instance to clone.