ExtensionMethods.CloneAsNonDisposable(IServiceBroker) Method

Definition

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.

Applies to