Exemplo n.º 1
0
 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);
 }