示例#1
0
        private static AppSettings LoadSettings()
        {
            var repository = Ioc.Resolve <IRepository>();

            return(repository.Get <AppSettings>(DefaultId) ?? repository.Save(new AppSettings()));
        }
示例#2
0
 public static ILogger For(Type type)
 {
     return(Ioc.Resolve <ILoggerFactory>().GetLoggerFor(type));
 }