UseAmbient(IBehaviorPipelineFactory) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Sets an ambient IBehaviorPipelineFactory to use for Default for the current execution context.

public static IDisposable UseAmbient(IBehaviorPipelineFactory factory)

Parameters

factory
IBehaviorPipelineFactory

The IBehaviorPipelineFactory to set as the ambient Default.

Returns

IDisposable
An IDisposable that, when disposed, restores the original execution context default.