/// <summary> /// Initializes a new instance of UnityPerRequestLifetimeManager with a per-request store. /// </summary> /// <param name="contextStore"></param> public UnityPerRequestLifetimeManager(IPerRequestStore contextStore) { this.contextStore = contextStore; this.contextStore.EndRequest += this.EndRequestHandler; }
/// <summary> /// Initializes a new instance of UnityPerRequestLifetimeManager with a per-request store. /// </summary> /// <param name="contextStore"></param> public UnityPerRequestLifetimeManager(IPerRequestStore contextStore) { _contextStore = contextStore; _contextStore.EndRequest += EndRequestHandler; }
/// <summary> /// Initializes a new instance of UnityPerRequestLifetimeManager with a per-request store. /// </summary> /// <param name="contextStore"></param> public UnityPerRequestLifetimeManager(IPerRequestStore contextStore) { this.contextStore = contextStore; this.contextStore.EndRequest += EndRequestHandler; }
/// <summary>Initializes a new instance of the <see cref="UnityPerRequestLifetimeManager"/> class</summary> /// <param name="perRequestStore">The per request store.</param> public UnityPerRequestLifetimeManager(IPerRequestStore perRequestStore) { this.contextStore = perRequestStore; }