예제 #1
0
 private static void RegisterApplicationConfigParser(ContainerBuilder builder)
 {
     builder.Register <IApplicationConfigParser>(c =>
     {
         IApplicationConfigSymbolResolver symbolResolver = c.Resolve <IApplicationConfigSymbolResolver>();
         return(new ApplicationConfigParser(symbolResolver));
     }).SingleInstance();
 }
예제 #2
0
 private static void RegisterApplicationConfigParser(IUnityContainer container)
 {
     container.RegisterType <IApplicationConfigParser>(new ContainerControlledLifetimeManager(),
                                                       new InjectionFactory(c =>
     {
         IApplicationConfigSymbolResolver symbolResolver = c.Resolve <IApplicationConfigSymbolResolver>();
         return(new ApplicationConfigParser(symbolResolver));
     }));
 }
예제 #3
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver)
 {
     _symbolResolver = symbolResolver;
 }
예제 #4
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver, IJsonSerializer jsonSerializer)
 {
     _symbolResolver = symbolResolver;
     _jsonSerializer = jsonSerializer;
 }
예제 #5
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver, IJsonSerializer jsonSerializer)
 {
     _symbolResolver = symbolResolver;
     _jsonSerializer = jsonSerializer;
 }
예제 #6
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver)
 {
     _symbolResolver = symbolResolver;
 }