C# Class DryIoc.Web.DryIocWeb

Extension to get container with ambient HttpContext.Current scope context.
ファイルを表示 Open project: mobsoftware/mobsocial

Public Methods

Method Description
WithHttpContextScopeContext ( this container, Func getContextItems = null ) : IContainer

Creates new container from original with HttpContext or arbitrary/test context getContextItems.

Method Details

WithHttpContextScopeContext() public static method

Creates new container from original with HttpContext or arbitrary/test context getContextItems.
public static WithHttpContextScopeContext ( this container, Func getContextItems = null ) : IContainer
container this Original container with some rules and registrations.
getContextItems Func (optional) Arbitrary or test context to use instead of .
return IContainer