Ejemplo n.º 1
0
 private static void RegisterApplicationConfigParser(ContainerBuilder builder)
 {
     builder.Register <IApplicationConfigParser>(c =>
     {
         IApplicationConfigSymbolResolver symbolResolver = c.Resolve <IApplicationConfigSymbolResolver>();
         return(new ApplicationConfigParser(symbolResolver));
     }).SingleInstance();
 }
Ejemplo n.º 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));
     }));
 }
Ejemplo n.º 3
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver)
 {
     _symbolResolver = symbolResolver;
 }
Ejemplo n.º 4
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver, IJsonSerializer jsonSerializer)
 {
     _symbolResolver = symbolResolver;
     _jsonSerializer = jsonSerializer;
 }
Ejemplo n.º 5
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver, IJsonSerializer jsonSerializer)
 {
     _symbolResolver = symbolResolver;
     _jsonSerializer = jsonSerializer;
 }
Ejemplo n.º 6
0
 public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver)
 {
     _symbolResolver = symbolResolver;
 }