Exemplo n.º 1
0
 public static void ReplaceService <TType, TImpl>(this IPlusStartupConfiguration configuration, DependencyLifeStyle lifeStyle = DependencyLifeStyle.Singleton) where TType : class where TImpl : class, TType
 {
     configuration.ReplaceService(typeof(TType), delegate
     {
         configuration.IocManager.Register <TType, TImpl>(lifeStyle);
     });
 }
Exemplo n.º 2
0
 public static void ReplaceService(this IPlusStartupConfiguration configuration, Type type, Type impl, DependencyLifeStyle lifeStyle = DependencyLifeStyle.Singleton)
 {
     configuration.ReplaceService(type, delegate
     {
         configuration.IocManager.Register(type, impl, lifeStyle);
     });
 }
Exemplo n.º 3
0
 public static void ReplaceService <TType>(this IPlusStartupConfiguration configuration, Action replaceAction) where TType : class
 {
     configuration.ReplaceService(typeof(TType), replaceAction);
 }