Ejemplo n.º 1
0
 public void RegisterSyntaxProvider <T>() where T : ISyntaxProvider
 {
     if (this.SyntaxProviderRegisterOptions == null)
     {
         this.SyntaxProviderRegisterOptions = this.Container.Register(typeof(ISyntaxProvider), typeof(T));
     }
 }
Ejemplo n.º 2
0
 public static TinyIoC.TinyIoCContainer.RegisterOptions AsPerRequestSingleton(this TinyIoC.TinyIoCContainer.RegisterOptions registerOptions)
 {
     return(TinyIoCContainer.RegisterOptions.ToCustomLifetimeManager(registerOptions, new HttpContextLifetimeProvider(), "per request singleton"));
 }