Example #1
0
 /// <summary>
 /// 静态构造方法。
 /// </summary>
 static HtmlHelperExtensions()
 {
     using (var container = AutofacConfig.Container.BeginLifetimeScope())
     {
         _fileStorageService = container.Resolve<IFileService>();
         _permissionService = container.Resolve<IPermissionService>();
         _systemSettingService = container.Resolve<ISystemSettingService>();
         _globalizationService = container.Resolve<IGlobalizationService>();
     }
 }
 public AppSettingsViewModel(IAppSettingsService appSettingsService, IGlobalizationService globalizationService, IStyleService styleService)
 {
     this.appSettingsService = appSettingsService;
     this.globalizationService = globalizationService;
     this.styleService = styleService;
 }