private static void RegisterApplicationConfigParser(ContainerBuilder builder) { builder.Register <IApplicationConfigParser>(c => { IApplicationConfigSymbolResolver symbolResolver = c.Resolve <IApplicationConfigSymbolResolver>(); return(new ApplicationConfigParser(symbolResolver)); }).SingleInstance(); }
private static void RegisterApplicationConfigParser(IUnityContainer container) { container.RegisterType <IApplicationConfigParser>(new ContainerControlledLifetimeManager(), new InjectionFactory(c => { IApplicationConfigSymbolResolver symbolResolver = c.Resolve <IApplicationConfigSymbolResolver>(); return(new ApplicationConfigParser(symbolResolver)); })); }
public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver) { _symbolResolver = symbolResolver; }
public ApplicationConfigParser(IApplicationConfigSymbolResolver symbolResolver, IJsonSerializer jsonSerializer) { _symbolResolver = symbolResolver; _jsonSerializer = jsonSerializer; }