public static TinyIoCContainer.MultiRegisterOptions AsPerThreadMultiInstance(this TinyIoCContainer.MultiRegisterOptions registerOptions) { return(TinyIoCContainer.MultiRegisterOptions.ToCustomLifetimeManager(registerOptions, new PerThreadLifetimeProvider(), "per thread singleton")); }
public static TinyIoCContainer.MultiRegisterOptions AsPerRequestSingleton(this TinyIoCContainer.MultiRegisterOptions registerOptions) { return(TinyIoCContainer.MultiRegisterOptions.ToCustomLifetimeManager(registerOptions, new HttpContextLifetimeProvider(), "per request singleton")); }
public static TinyIoCContainer.MultiRegisterOptions AsPerRequestSingleton(this TinyIoCContainer.MultiRegisterOptions registerOptions) { return(TinyIoCContainer.MultiRegisterOptions.ToCustomLifetimeManager(registerOptions, new TinyIoCThreadSingletonLifetimeManager(), "per thread singleton")); }