/// <summary> /// Third Constructrue: requirement ConfiguraionProvider for another Api's /// </summary> /// <param name="hubname"></param> /// <param name="providerName"></param> public ServerManager(string hubname, string providerName) { //var configProvider = CommonServiceLocator<IServerConfigurationProvider>.GetService(providerName); IServerConfigurationProvider configProvider = null; this._hubName = hubname; this._connectionUrl = configProvider.Url; this.ConnectionSecond = 600; this.DisconnectionSecond = 10; this._urlList = configProvider.GetAll(); this._containerList = new List <HubContainer>(); this._prismEventAggregator = new EventAggregator(); GlobalHost.Configuration.ConnectionTimeout = new TimeSpan(0, 0, ConnectionSecond); GlobalHost.Configuration.DisconnectTimeout = new TimeSpan(0, 0, DisconnectionSecond); RegisterShims(new[] { new ServerPrismEventAggregatorShim(_prismEventAggregator), }); LoadHub(); this._context = GlobalHost.ConnectionManager.GetHubContext(hubname); }
public ListeDerInspektionsroutenController(ITabellarischeReportControllerBaseDependencies tabellarischeReportControllerBaseDependencies, IServerConfigurationProvider serverConfigurationProvider, ILegendService legendService) : base(tabellarischeReportControllerBaseDependencies) { this.serverConfigurationProvider = serverConfigurationProvider; this.legendService = legendService; }
public LegendService(IServerConfigurationProvider serverConfigurationProvider, ILocalizationService localizationService, IInspektionsRouteGISService inspektionsRouteGISService, IMassnahmenvorschlagKatalogService massnahmenvorschlagKatalogService, ITransactionScopeProvider transactionScopeProvider) { this.serverConfigurationProvider = serverConfigurationProvider; this.localizationService = localizationService; this.inspektionsRouteGISService = inspektionsRouteGISService; this.massnahmenvorschlagKatalogService = massnahmenvorschlagKatalogService; this.transactionScopeProvider = transactionScopeProvider; layerInfo = new Dictionary <string, Tuple <string, string> > { { "AchsenUpdateKonflikteLayer", Tuple.Create("AchsenUpdateKonflikteStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerAchsenUpdateKonflikte")) }, { "KoordinierteMassnahmenLayer", Tuple.Create("KoordinierteMassnahmenStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerKoordinierteMassnahmen")) }, { "MassnahmenVorschlagTeilsystemeLayer", Tuple.Create("MassnahmenVorschlagTeilsystemeStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerMassnahmenVorschlagTeilsysteme")) }, { "RealisierteMassnahmenLayer", Tuple.Create("RealisierteMassnahmeGISStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "RealisierteMassnahmeGIS_Auswertung")) }, { "InspektionsroutenLayer", Tuple.Create("InspektionsrouteStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerInspektionsroute")) }, { "ZustandsabschnittLayer", Tuple.Create("ZustandsabschnittStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandsabschnitte")) }, { "ZustandsabschnittLayer_Trottoir", Tuple.Create("ZustandtrottoirLeftStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandsabschnitteTrottoir")) }, { "StrassenabschnittLayer", Tuple.Create("StrassenabschnittGISBK.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerStrassenabschnitte")) }, { "StrassenabschnittLayer_SingleColor", Tuple.Create("StrassenabschnittStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerStrassenabschnitte")) }, { zustandabschnittLayerMassnahmeTyp, Tuple.Create("Zustandsabschnitt_Massnahmetyp_AuswertungStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandabschnittMassnahmeTyp")) }, { zustandabschnittLayerTrottoirMassnahmeTyp, Tuple.Create("Zustandsabschnitt_Massnahmetyp_Trottoir_AuswertungLeftStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandabschnittMassnahmeTypTrottoir")) }, { "ZustandabschnittLayer_Index", Tuple.Create("Zustandabschnitt_IndexStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandsabschnitte")) }, { "ZustandabschnittLayer_Trottoir_Index", Tuple.Create("ZustandtrottoirAuswertungLeftStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerZustandsabschnitteTrottoir")) }, { "StrassenabschnittLayer_Report", Tuple.Create("Strassenabschnitt_AuswertungStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerStrassenabschnitte")) }, { "StrassenabschnittLayer_Report_Grey", Tuple.Create("Strassenabschnitt_Auswertung_GrayStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerStrassenabschnitte")) }, { inspektionsrouteStrassenabschnittLayerReport, Tuple.Create("Inspektionsroute_Strassenabschnitt_AuswertungStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "InspektionsrouteStrassenabschnittGISAuswertung")) }, { "KoordinierteMassnahmeGIS_Report", Tuple.Create("KoordinierteMassnahme_AuswertungStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "KoordinierteMassnahmeGIS_Auswertung")) }, { "MassnahmenvorschlagTeilsystemeGIS_Report", Tuple.Create("MassnahmenvorschlagTeilsysteme_AuswertungStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerMassnahmenVorschlagTeilsysteme")) }, { "AchsenSegmentLayer", Tuple.Create("AchsenSegmentStyle.sld", this.localizationService.GetLocalizedValue("MapLocalization", "LayerAchsensegmente")) } }; }
public LogHandlerService( IServerConfigurationProvider serverConfigurationProvider, IServerPathProvider serverPathProvider) { this.serverConfigurationProvider = serverConfigurationProvider; nlogConfig = serverPathProvider.MapPath(@"~/NLog.config"); }
public MenuItemModelBuilder(IPermissionService permissionService, IServerConfigurationProvider serverConfigurationProvider, NetzErfassungsmodus netzErfassungsmodus) { this.permissionService = permissionService; this.serverConfigurationProvider = serverConfigurationProvider; this.netzErfassungsmodus = netzErfassungsmodus; menuItemModels = new List <MenuItemModel>(); }
private MenuItemModelBuilder(IPermissionService permissionService, IServerConfigurationProvider serverConfigurationProvider, NetzErfassungsmodus netzErfassungsmodus, List <MenuItemModel> menuItemModelList) { this.permissionService = permissionService; this.serverConfigurationProvider = serverConfigurationProvider; this.netzErfassungsmodus = netzErfassungsmodus; menuItemModels = menuItemModelList; }
public AcmeProcess(Options options, IChallengeProvider challengeProvider, IServerConfigurationProvider serverConfiguration, IAcmeClient client, IPkcs12 pkcs12, ICertificateRequestAsn1DEREncoder certificateRequestEncoder) { this.options = options; this.challengeProvider = challengeProvider; this.serverConfiguration = serverConfiguration; this.client = client; this.pkcs12 = pkcs12; this.certificateRequestEncoder = certificateRequestEncoder; }
public GlobalResourceHandlerService( ILocalizationService localizationService, IServerConfigurationProvider serverConfigurationProvider, IServerPathProvider serverPathProvider) { this.localizationService = localizationService; mobileClientResources = Path.Combine(serverConfigurationProvider.ClientFilesFolderPath, "Resources"); appGlobalResources = serverPathProvider.MapPath(@"~/App_GlobalResources"); }
public RealisierteMassnahmeOverviewService( ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, IHistorizationService historizationService, ISecurityService securityService, IServerConfigurationProvider serverConfigurationProvider) : base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService) { this.serverConfigurationProvider = serverConfigurationProvider; }
public ZustandsabschnittService( ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, ISecurityService securityService, IHistorizationService historizationService, IServerConfigurationProvider serverConfigurationProvider) : base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService) { this.serverConfigurationProvider = serverConfigurationProvider; }
public HelpSystemService( IServerConfigurationProvider serverConfigurationProvider, ILocalizationService localizationService, IServerPathProvider serverPathProvider) { this.localizationService = localizationService; mobilHelpSystem = Path.Combine(serverConfigurationProvider.ClientFilesFolderPath, "Help"); masterHelpSystem = serverPathProvider.MapPath("~/Help"); LoadNames(); }
public HomeController( ISecurityService securityService, ILocalizationService localizationService, IErfassungsPeriodService erfassungsPeriodService, IServerConfigurationProvider serverConfigurationProvider) { this.securityService = securityService; this.localizationService = localizationService; this.erfassungsPeriodService = erfassungsPeriodService; this.serverConfigurationProvider = serverConfigurationProvider; }
public AcmeProcess( Options options, IChallengeProvider challengeProvider, IServerConfigurationProvider serverConfiguration, IAcmeClient client) { this.options = options; this.challengeProvider = challengeProvider; this.serverConfiguration = serverConfiguration; this.client = client; }
public ZustandProZustandsabschnittPoProvider( IZustandProZustandsabschnittMapProvider zustandProZustandsabschnittMapProvider, IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider, IServerConfigurationProvider serverConfigurationProvider ) { this.zustandProZustandsabschnittMapProvider = zustandProZustandsabschnittMapProvider; this.filtererFactory = filtererFactory; this.transactionScopeProvider = transactionScopeProvider; this.serverConfigurationProvider = serverConfigurationProvider; }
public ShapeExportService(ITransactionScopeProvider transactionScopeProvider, IHistorizationService historizationService, IServerConfigurationProvider serverConfigurationProvider, IShpShxSerializeService shpShxSerializeService, IWiederbeschaffungswertKatalogService wiederbeschaffungswertKatalogService) { this.wiederbeschaffungswertKatalogService = wiederbeschaffungswertKatalogService; this.shpShxSerializeService = shpShxSerializeService; this.serverConfigurationProvider = serverConfigurationProvider; this.transactionScopeProvider = transactionScopeProvider; this.historizationService = historizationService; }
public PackageService(IServerConfigurationProvider serverConfigurationProvider, IInspektionsRouteGISService inspektionsRouteGISService, IInspektionsRouteGISOverviewService inspektionsRouteGISOverviewService, ICheckOutsGISService checkOutsGISService, ILocalizationService localizationService) { this.localizationService = localizationService; this.checkOutsGISService = checkOutsGISService; this.inspektionsRouteGISOverviewService = inspektionsRouteGISOverviewService; this.inspektionsRouteGISService = inspektionsRouteGISService; this.serverConfigurationProvider = serverConfigurationProvider; }
public RealisierteMassnahmeGISOverviewModelService( ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, ISecurityService securityService, IFiltererFactory filtererFactory, IHistorizationService historizationService, IServerConfigurationProvider serverConfigurationProvider) : base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService) { this.filtererFactory = filtererFactory; this.serverConfigurationProvider = serverConfigurationProvider; }
public WMSController(ISecurityService securityService, IAchsenSegmentService achsenSegmentService, ICreateWMSRequest createWMSRequest, ILegendService legendService, IServerConfigurationProvider serverConfigurationProvider) { this.securityService = securityService; this.achsenSegmentService = achsenSegmentService; this.createWMSRequest = createWMSRequest; this.legendService = legendService; this.serverConfigurationProvider = serverConfigurationProvider; }
public MassnahmenvorschlagProZustandsabschnittPoProvider( IMassnahmenvorschlagProZustandsabschnittMapProvider massnahmenvorschlagProZustandsabschnittMapProvider, IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider, IServerConfigurationProvider serverConfigurationProvider ) { this.massnahmenvorschlagProZustandsabschnittMapProvider = massnahmenvorschlagProZustandsabschnittMapProvider; this.filtererFactory = filtererFactory; this.transactionScopeProvider = transactionScopeProvider; this.serverConfigurationProvider = serverConfigurationProvider; }
public AuthController(IServerConfigurationProvider serverConfigurationProvider, ISessionService sessionService, IEreignisLogService ereignisLogService, ILocalizationService localizationService, ISecurityService securityService) { userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext(serverConfigurationProvider.ConnectionString))); userManager.UserValidator = new UserValidator <ApplicationUser>(userManager) { AllowOnlyAlphanumericUserNames = false }; this.sessionService = sessionService; this.ereignisLogService = ereignisLogService; this.localizationService = localizationService; this.securityService = securityService; }
public ListeDerInspektionsroutenPoProvider( IListeDerInspektionsroutenMapProvider listeDerInspektionsroutenMapProvider, ITransactionScopeProvider transactionScopeProvider, IFiltererFactory filtererFactory, ILegendService legendService, IServerConfigurationProvider serverConfigurationProvider ) { this.listeDerInspektionsroutenMapProvider = listeDerInspektionsroutenMapProvider; this.transactionScopeProvider = transactionScopeProvider; this.filtererFactory = filtererFactory; this.legendService = legendService; this.serverConfigurationProvider = serverConfigurationProvider; }
public JahresabschlussGISService(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, ISecurityService securityService, IErfassungsPeriodService erfassungsPeriodService, IStrassenabschnittGISService strassenabschnittGISService, IMassnahmenvorschlagCopyService massnahmenvorschlagCopyService, IServerConfigurationProvider serverConfigurationProvider, IZustandsabschnittGISService zustandsabschnittGISService) : base(transactionScopeProvider, entityServiceMappingEngine, securityService) { this.erfassungsPeriodService = erfassungsPeriodService; this.strassenabschnittGISService = strassenabschnittGISService; this.massnahmenvorschlagCopyService = massnahmenvorschlagCopyService; this.serverConfigurationProvider = serverConfigurationProvider; this.zustandsabschnittGISService = zustandsabschnittGISService; }
public MainWindow() { InitializeComponent(); tempDirectory = tempFolderTekstBox.Text + Path.DirectorySeparatorChar; if (!Directory.Exists(tempDirectory)) { Directory.CreateDirectory(tempDirectory); } configPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Config\servers.json"); serverConfigurationProvider = new ServerConfigurationFromConfigProvider(configPath); listOfServers = serverConfigurationProvider.GetServerConfiguration(); foreach (var key in listOfServers.Keys) { comboBoxServers.Items.Add(key); } }
protected void Application_Start() { var dateTime = DateTime.Now; SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin")); //Autofac Container Setup var container = new ServerContainerSetup().BuildContainer(); DependencyResolver.SetResolver(new AutofacDependencyResolver(container)); AreaRegistration.RegisterAllAreas(); //Register Filters GlobalFilters.Filters.Add(new AuthorizationFilter(container.Resolve <IPermissionService>(), container.Resolve <ISecurityService>(), container.Resolve <ISessionService>(), container.Resolve <IEreignisLogService>())); GlobalFilters.Filters.Add(new AvailabilityFilter(container.Resolve <IAvailabilityService>())); GlobalFilters.Filters.Add(new StopwatchAttribute(), 3); // to force httpRuntime executionTimeout="10" locally //GlobalFilters.Filters.Add(new ExecutionTimeoutToGetAroundBugInMVCAttribute()); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); FluentValidationModelValidatorProvider.Configure(provider => provider.ValidatorFactory = container.Resolve <IValidatorFactory>()); ValidatorOptions.DisplayNameResolver += DisplayNameResolver; ValidatorOptions.ResourceProviderType = typeof(ValidationErrorLocalizationWrapper); transactionScopeProvider = container.Resolve <ITransactionScopeProvider>(); cookieService = container.Resolve <ICookieService>(); serverConfigurationProvider = container.Resolve <IServerConfigurationProvider>(); ereignisLogService = container.Resolve <IEreignisLogService>(); httpRequestService = container.Resolve <IHttpRequestService>(); securityService = container.Resolve <ISecurityService>(); Loggers.ApplicationLogger.DebugFormat("Initialization duration: {0} second", (DateTime.Now - dateTime).TotalSeconds); if (serverConfigurationProvider.EnableMiniProfiler) { MiniProfiler.Settings.SqlFormatter = new Web.Infrastructure.MiniProfiler.OracleFormatter(); MiniProfiler.Settings.IgnoredPaths = new[] { "/WMS", "/content/", "/scripts/", "/favicon.ico", "/OpenLayers-2.10/" }; MiniProfiler.Settings.StackMaxLength = 720; MiniProfiler.Settings.MaxJsonResponseSize = 10000000; } }
public HeaderController( IMandantDetailsService mandantDetailsService, ISecurityService securityService, IPermissionService permissionService, IErfassungsPeriodService erfassungsPeriodService, ICookieService cookieService, IHttpRequestCacheService httpRequestCacheService, IApplicationSupporterService applicationSupporterService, IServerConfigurationProvider serverConfigurationProvider) { this.mandantDetailsService = mandantDetailsService; this.securityService = securityService; this.permissionService = permissionService; this.erfassungsPeriodService = erfassungsPeriodService; this.cookieService = cookieService; this.httpRequestCacheService = httpRequestCacheService; this.applicationSupporterService = applicationSupporterService; this.serverConfigurationProvider = serverConfigurationProvider; }
public ZustandsabschnittGISService( ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, ISecurityService securityService, IHistorizationService historizationService, IGISService gisService, IAchsenReferenzService achsenReferenzService, IReferenzGruppeService referenzGruppeService, IGeoJSONParseService geoJSONParseService, IFiltererFactory filtererFactory, IServerConfigurationProvider serverConfigurationProvider) : base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService) { this.transactionScopeProvider = transactionScopeProvider; this.achsenReferenzService = achsenReferenzService; this.referenzGruppeService = referenzGruppeService; this.gisService = gisService; this.geoJSONParseService = geoJSONParseService; this.filtererFactory = filtererFactory; this.serverConfigurationProvider = serverConfigurationProvider; }
public CheckOutService ( IInspektionsRouteGISService inspektionsRouteGISService, IInspektionsRouteStatusverlaufService inspektionsRouteStatusverlaufService, IInspektionsRtStrAbschnitteService inspektionsRtStrAbschnitteService, IStrassenabschnittGISDTOService strassenabschnittGISDTOService, IMassnahmenvorschlagKatalogService massnahmenvorschlagKatalogService, IMassnahmenvorschlagKatalogDTOService massnahmenvorschlagKatalogDTOService, IAchsenReferenzService achsenReferenzService, IZustandsabschnittGISDTOService zustandsabschnittGISDTOService, ISchadendetailDTOService schadendetailDTOService, ISchadengruppeDTOService schadengruppeDTOService, IAchsenSegmentService achsenSegmentService, IAchsenSegmentDTOService achsenSegmentDTOService, IBelastungskategorieService belastungskategorieService, IBelastungskategorieDTOService belastungskategorieDTOService, IServerConfigurationProvider serverConfigurationProvider, ILegendService legendService ) { this.inspektionsRouteGISService = inspektionsRouteGISService; this.inspektionsRouteStatusverlaufService = inspektionsRouteStatusverlaufService; this.inspektionsRtStrAbschnitteService = inspektionsRtStrAbschnitteService; this.strassenabschnittGISDTOService = strassenabschnittGISDTOService; this.massnahmenvorschlagKatalogService = massnahmenvorschlagKatalogService; this.massnahmenvorschlagKatalogDTOService = massnahmenvorschlagKatalogDTOService; this.achsenReferenzService = achsenReferenzService; this.zustandsabschnittGISDTOService = zustandsabschnittGISDTOService; this.schadendetailDTOService = schadendetailDTOService; this.schadengruppeDTOService = schadengruppeDTOService; this.achsenSegmentService = achsenSegmentService; this.achsenSegmentDTOService = achsenSegmentDTOService; this.belastungskategorieService = belastungskategorieService; this.belastungskategorieDTOService = belastungskategorieDTOService; this.serverConfigurationProvider = serverConfigurationProvider; this.legendService = legendService; }
public IdentityRoleService(IServerConfigurationProvider serverConfigurationProvider) { connectionString = serverConfigurationProvider.ConnectionString; }
public CachedIdentityRoleService(ISessionCacheService sessionCacheService, IServerConfigurationProvider configurationProvider, IdentityRoleService roleService) { this.sessionCacheService = sessionCacheService; this.configurationProvider = configurationProvider; this.roleService = roleService; }
public IdentityCacheService(ISessionCacheService sessionCacheService, IServerConfigurationProvider configurationProvider, IIdentityService identityService) { this.sessionCacheService = sessionCacheService; this.configurationProvider = configurationProvider; this.identityService = identityService; }