src/Miles.GreenPipes/ContainerScope/ContainerScopeExtensions.cs
/// <summary>
/// Creates a container scope allowing child scopes/containers.
/// </summary>
/// <typeparam name="TContext">The type of the context.</typeparam>
/// <param name="configurator">The configurator.</param>
/// <param name="rootContainer">The root container.</param>
Creates a container scope allowing child scopes/containers.
Creates a container scope allowing child scopes / containers .
public static void UseContainerScope<TContext>(this IPipeConfigurator<TContext> configurator, IContainer rootContainer = null)
            where TContext : class, PipeContext
        {
            configurator.AddPipeSpecification(new ContainerScopeSpecification<TContext>(rootContainer));
        }
public static void UseContainerScope < TContext > ( this IPipeConfigurator < TContext > configurator , IContainer rootContainer = null ) where TContext : class , PipeContext { configurator . AddPipeSpecification ( new ContainerScopeSpecification < TContext > ( rootContainer ) ) ; }
Creates a container scope allowing child scopes/containers.
Creates a container scope allowing child scopes / containers .
IPipeConfigurator<TContext>
this
rootContainer
IContainer
The root container.
The root container .
configurator
None
typeparam
The type of the context.
The type of the context .