public static IIoc Configure <T>(this IIoc ioc, IAppConfig appConfig) where T : class, new() { appConfig.Binding <T>(obj => { ioc.AddSingleton <IAppOptions <T> >(new AppOptions <T>(obj)); }); return(ioc); }
public static IIoc Configure <T>(this IIoc ioc, IAppConfig appConfig) where T : class, new() { appConfig.Binding <T>(obj => { ioc.AddSingleton <IAppOptions <T> >(new AppOptions <T>(obj)); }); return(ioc); }