示例#1
0
 public LogHandlerService(
     IServerConfigurationProvider serverConfigurationProvider,
     IServerPathProvider serverPathProvider)
 {
     this.serverConfigurationProvider = serverConfigurationProvider;
     nlogConfig = serverPathProvider.MapPath(@"~/NLog.config");
 }
示例#2
0
 public GlobalResourceHandlerService(
     ILocalizationService localizationService,
     IServerConfigurationProvider serverConfigurationProvider,
     IServerPathProvider serverPathProvider)
 {
     this.localizationService = localizationService;
     mobileClientResources    = Path.Combine(serverConfigurationProvider.ClientFilesFolderPath, "Resources");
     appGlobalResources       = serverPathProvider.MapPath(@"~/App_GlobalResources");
 }
示例#3
0
 public TestMandantLogoService(
     ITransactionScopeProvider transactionScopeProvider,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ISecurityService securityService,
     ILocalizationService localizationService,
     IServerPathProvider serverPathProvider)
     : base(transactionScopeProvider, entityServiceMappingEngine, securityService, localizationService, serverPathProvider)
 {
     this.serverPathProvider = serverPathProvider;
 }
示例#4
0
        public HelpSystemService(
            IServerConfigurationProvider serverConfigurationProvider,
            ILocalizationService localizationService,
            IServerPathProvider serverPathProvider)
        {
            this.localizationService = localizationService;

            mobilHelpSystem  = Path.Combine(serverConfigurationProvider.ClientFilesFolderPath, "Help");
            masterHelpSystem = serverPathProvider.MapPath("~/Help");
            LoadNames();
        }
示例#5
0
 public GISReportService(
     ICreateWMSRequest createWmsRequest,
     IServerPathProvider serverPathProvider,
     ILocalizationService localizationService,
     ILegendService legendService)
 {
     createWMSRequest         = createWmsRequest;
     this.serverPathProvider  = serverPathProvider;
     this.localizationService = localizationService;
     this.legendService       = legendService;
 }
示例#6
0
 protected ImportServiceBase(
     ILocalizationService localizationService,
     IValidatorFactory validatorFactory,
     IEreignisLogService ereignisLogService,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ICookieService cookieService,
     IServerPathProvider serverPathProvider)
 {
     LocalizationService             = localizationService;
     this.validatorFactory           = validatorFactory;
     this.ereignisLogService         = ereignisLogService;
     this.entityServiceMappingEngine = entityServiceMappingEngine;
     this.cookieService      = cookieService;
     this.serverPathProvider = serverPathProvider;
 }
 public StrassenabschnittXlsxImportService(
     IValidatorFactory validatorFactory,
     ILocalizationService localizationService,
     IStrassenabschnittImportService strassenabschnittImportService,
     IBelastungskategorieService belastungskategorieService,
     IEreignisLogService ereignisLogService,
     ISessionService sessionService,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ICookieService cookieService,
     IServerPathProvider serverPathProvider)
     : base(localizationService, validatorFactory, ereignisLogService, entityServiceMappingEngine, cookieService, serverPathProvider)
 {
     this.strassenabschnittImportService = strassenabschnittImportService;
     this.belastungskategorieService     = belastungskategorieService;
     this.sessionService = sessionService;
 }
示例#8
0
 public ZustandsabschnittXlsxImportService(
     ILocalizationService localizationService,
     IStrassenabschnittService strassenabschnittService,
     IMassnahmenvorschlagKatalogService massnahmenvorschlagKatalogService,
     IValidatorFactory validatorFactory,
     IZustandsabschnittImportService zustandsabschnittImportService,
     IEreignisLogService ereignisLogService,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ISessionService sessionService,
     ICookieService cookieService,
     IServerPathProvider serverPathProvider
     )
     : base(localizationService, validatorFactory, ereignisLogService, entityServiceMappingEngine, cookieService, serverPathProvider)
 {
     this.strassenabschnittService          = strassenabschnittService;
     this.massnahmenvorschlagKatalogService = massnahmenvorschlagKatalogService;
     this.zustandsabschnittImportService    = zustandsabschnittImportService;
     this.sessionService = sessionService;
 }
示例#9
0
        public MandantLogoService(
            ITransactionScopeProvider transactionScopeProvider,
            IEntityServiceMappingEngine entityServiceMappingEngine,
            ISecurityService securityService,
            ILocalizationService localizationService,
            IServerPathProvider serverPathProvider)
            : base(transactionScopeProvider, entityServiceMappingEngine, securityService)
        {
            this.localizationService = localizationService;

            var imagePath = serverPathProvider.MapPath(@"~/App_Data/DefaultLogo.png");
            var image     = Image.FromFile(imagePath);

            defaultMandantLogoModel = new MandantLogoModel
            {
                Logo   = File.ReadAllBytes(imagePath),
                Height = image.Height,
                Width  = image.Width
            };
        }
示例#10
0
 public HilfeSucheService(IServerPathProvider serverPathProvider)
 {
     this.serverPathProvider = serverPathProvider;
     helpTexts    = new Lazy <Dictionary <EmsgLanguage, Dictionary <string, string> > >(LoadHelpTexts);
     helpInhalten = new Lazy <Dictionary <EmsgLanguage, Dictionary <string, string> > >(ParseInhaltPages);
 }
 public ReportLegendImageService(IServerPathProvider serverPathProvider)
 {
     this.serverPathProvider = serverPathProvider;
 }
示例#12
0
 public RazorTemplateService([NotNull] IServerPathProvider serverPathProvider)
 {
     this.serverPathProvider = serverPathProvider;
     razor = new Lazy <IRazorEngineService>(CreateRazor, LazyThreadSafetyMode.ExecutionAndPublication);
 }