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 MassnahmenvorschlagTeilsystemeGISModelService(
     ITransactionScopeProvider transactionScopeProvider,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ISecurityService securityService,
     IAchsenReferenzService achsenReferenzService,
     IReferenzGruppeService referenzGruppeService,
     IGISService gisService,
     IGeoJSONParseService geoJSONParseService,
     IAchsenSegmentService achsenSegmentService)
     : base(transactionScopeProvider, entityServiceMappingEngine, securityService)
 {
     this.achsenReferenzService = achsenReferenzService;
     this.referenzGruppeService = referenzGruppeService;
     this.gisService            = gisService;
     this.geoJSONParseService   = geoJSONParseService;
     this.achsenSegmentService  = achsenSegmentService;
 }
        public ZustandsspiegelProJahrGrafischePoProvider(
            IJahresIntervalService jahresIntervalService,
            IFiltererFactory filtererFactory,
            ITransactionScopeProvider transactionScopeProvider,
            IReportLocalizationService reportLocalizationService,
            IReportResourceLocator reportResourceLocator,
            IReportLegendImageService reportLegendImageService)
        {
            this.jahresIntervalService     = jahresIntervalService;
            this.filtererFactory           = filtererFactory;
            this.transactionScopeProvider  = transactionScopeProvider;
            this.reportLocalizationService = reportLocalizationService;
            this.reportResourceLocator     = reportResourceLocator;
            this.reportLegendImageService  = reportLegendImageService;

            diagramPos = new Dictionary <int, List <DiagramPo> >();
            tablePos   = new Dictionary <int, List <TablePo> >();
        }
Exemplo n.º 4
0
 public AusgefuellteErfassungsformulareFuerOberflaechenschaedenPoProvider(
     IZustandsabschnittService zustandsabschnittService,
     ILocalizationService localizationService,
     ISchadenMetadatenService schadenMetadatenService,
     IZustandsabschnittGISService zustandsabschnittGISService,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     IFiltererFactory filtererFactory,
     ITransactionScopeProvider scopeProvider
     )
 {
     this.zustandsabschnittService    = zustandsabschnittService;
     this.localizationService         = localizationService;
     this.schadenMetadatenService     = schadenMetadatenService;
     this.zustandsabschnittGISService = zustandsabschnittGISService;
     this.entityServiceMappingEngine  = entityServiceMappingEngine;
     this.filtererFactory             = filtererFactory;
     this.scopeProvider = scopeProvider;
 }
        public static async Task <OperationResult <T> > RunWithTransactionAsync <T>(this ITransactionScopeProvider provider, Func <ITransactionScopeDataAccessor, Task <OperationResult <T> > > callback)
        {
            ITransactionScopeDataAccessor accessor = null;

            try {
                accessor = provider.GetTransactionScopeDataAccessor();

                var operation = await callback(accessor);

                if (operation.WasSuccessful)
                {
                    var commitTransaction = accessor.CommitTransaction();
                    if (commitTransaction.WasSuccessful == false)
                    {
                        return(new OperationResult <T>(commitTransaction.Exceptions));
                    }
                }
                else
                {
                    var rollbackTransaction = accessor.RollbackTransaction();
                    if (rollbackTransaction.WasSuccessful == false)
                    {
                        return(new OperationResult <T>(false, operation.Result, operation.Exceptions.Concat(rollbackTransaction.Exceptions)));
                    }
                }

                return(operation);
            }
            catch (Exception ex) {
                var rollBack =
                    accessor?.RollbackTransaction();

                var exceptions = new List <Exception>();
                exceptions.Add(ex);

                if (rollBack != null)
                {
                    exceptions.AddRange(rollBack.Exceptions);
                }

                return(new OperationResult <T>(exceptions));
            }
        }
        public CommonGameActionsProvider(
            IUnityContainer container,
            IGameCommands gameCommands,
            IGameQueries gameQueries,
            ITransactionScopeProvider transactionScope,
            IErrorManager errors,
            IModeSwitch modeSwitch,
            IFlycowApiClientProvider flycowApiClientProvider
            )
        {
            _container               = container;
            _gameCommands            = gameCommands;
            _gameQueries             = gameQueries;
            _transactionScope        = transactionScope;
            _errors                  = errors;
            _flycowApiClientProvider = flycowApiClientProvider;

            _useRealUgs = modeSwitch.IsUsingRealUgs();
        }
Exemplo n.º 7
0
        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;
            }
        }
Exemplo n.º 8
0
 public InspektionsRouteGISOverviewService(
     ITransactionScopeProvider transactionScopeProvider,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     ISecurityService securityService,
     IHistorizationService historizationService,
     ILocalizationService localizationService,
     IInspektionsRouteStatusverlaufService inspektionsRouteStatusverlaufService,
     IInspektionsRouteLockingService inspektionsRouteLockingService,
     ICheckOutsGISService checkOutsGISService,
     ITimeService timeService
     )
     : base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService)
 {
     this.localizationService = localizationService;
     this.inspektionsRouteStatusverlaufService = inspektionsRouteStatusverlaufService;
     this.inspektionsRouteLockingService       = inspektionsRouteLockingService;
     this.checkOutsGISService = checkOutsGISService;
     this.timeService         = timeService;
 }
Exemplo n.º 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
            };
        }
        public ZustandsspiegelProBelastungskategorieGrafischePoProvider(
            IBelastungskategorieService belastungskategorieService,
            IReportLocalizationService reportLocalizationService,
            IFiltererFactory filtererFactory,
            ITransactionScopeProvider transactionScopeProvider,
            IReportLegendImageService reportLegendImageService,
            IReportResourceLocator reportResourceLocator)
        {
            this.belastungskategorieService = belastungskategorieService;
            this.reportLocalizationService  = reportLocalizationService;
            this.filtererFactory            = filtererFactory;
            this.transactionScopeProvider   = transactionScopeProvider;
            this.reportLegendImageService   = reportLegendImageService;
            this.reportResourceLocator      = reportResourceLocator;

            zustandsindexTypList = Enum.GetValues(typeof(ZustandsindexTyp)).OfType <ZustandsindexTyp>().ToList();
            flaecheTypList       = new List <FlaecheTyp> {
                FlaecheTyp.Fahrbahn, FlaecheTyp.Trottoir
            };
        }
Exemplo n.º 11
0
 public JahresabschlussService(
     ITransactionScopeProvider transactionScopeProvider,
     IErfassungsPeriodService erfassungsPeriodService,
     IStrassenabschnittService strassenabschnittService,
     INetzSummarischService netzSummarischService,
     IStrassenabschnittGISService strassenabschnittGISService,
     ITrottoirZustandService trottoirZustandService,
     ITrottoirZustandGISService trottoirZustandGisService,
     IKatalogCopyService katalogCopyService,
     INetzSummarischDetailService netzSummarischDetailService,
     IInspektionsRouteGISService inspektionsRouteGISService,
     IJahresabschlussGISService jahresabschlussGISService,
     IRealisierteMassnahmeService realisierteMassnahmeService,
     IKoordinierteMassnahmeGISModelService koordinierteMassnahmeGISModelService,
     IRealisierteMassnahmeSummarsichService realisierteMassnahmeSummarsichService,
     IEreignisLogService ereignisLogService,
     IMandantenDetailsCopyService mandantenDetailsCopyService,
     IBenchmarkingDataDetailCalculatorService benchmarkingDataDetailCopyService,
     IMassnahmenvorschlagTeilsystemeGISModelService massnahmenvorschlagTeilsystemeGISModelService,
     IKenngroessenFruehererJahreService kenngroessenFruehererJahreService)
 {
     this.transactionScopeProvider                      = transactionScopeProvider;
     this.erfassungsPeriodService                       = erfassungsPeriodService;
     this.strassenabschnittService                      = strassenabschnittService;
     this.netzSummarischService                         = netzSummarischService;
     this.strassenabschnittGISService                   = strassenabschnittGISService;
     this.trottoirZustandService                        = trottoirZustandService;
     this.trottoirZustandGisService                     = trottoirZustandGisService;
     this.katalogCopyService                            = katalogCopyService;
     this.netzSummarischDetailService                   = netzSummarischDetailService;
     this.jahresabschlussGISService                     = jahresabschlussGISService;
     this.inspektionsRouteGISService                    = inspektionsRouteGISService;
     this.realisierteMassnahmeService                   = realisierteMassnahmeService;
     this.realisierteMassnahmeSummarsichService         = realisierteMassnahmeSummarsichService;
     this.ereignisLogService                            = ereignisLogService;
     this.mandantenDetailsCopyService                   = mandantenDetailsCopyService;
     this.benchmarkingDataDetailCopyService             = benchmarkingDataDetailCopyService;
     this.koordinierteMassnahmeGISModelService          = koordinierteMassnahmeGISModelService;
     this.massnahmenvorschlagTeilsystemeGISModelService = massnahmenvorschlagTeilsystemeGISModelService;
     this.kenngroessenFruehererJahreService             = kenngroessenFruehererJahreService;
 }
Exemplo n.º 12
0
 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;
 }
Exemplo n.º 13
0
 public InspektionsRouteGISService(
     ITransactionScopeProvider transactionScopeProvider,
     IEntityServiceMappingEngine entityServiceMappingEngine,
     IInspektionsRtStrAbschnitteService inspektionsRtStrAbschnitteService,
     IGeoJSONParseService geoJSONParseService,
     ISecurityService securityService,
     IHistorizationService historizationService,
     IInspektionsRouteStatusverlaufService inspektionsRouteStatusverlaufService,
     IInspektionsRouteLockingService inspektionsRouteLockingService,
     IStrassenabschnittGISService strassenabschnittGISService,
     IGISService gisService
     ) :
     base(transactionScopeProvider, entityServiceMappingEngine, securityService, historizationService)
 {
     this.gisService = gisService;
     this.strassenabschnittGISService          = strassenabschnittGISService;
     this.inspektionsRouteStatusverlaufService = inspektionsRouteStatusverlaufService;
     this.inspektionsRtStrAbschnitteService    = inspektionsRtStrAbschnitteService;
     this.inspektionsRouteLockingService       = inspektionsRouteLockingService;
     this.geoJSONParseService = geoJSONParseService;
 }
Exemplo n.º 14
0
 public ZustandsabschnittGISDTOService(ITransactionScopeProvider transactionScopeProvider,
                                       IDataTransferObjectServiceMappingEngine dataTransferObjectServiceMappingEngine,
                                       IReferenzGruppeDTOService referenzGruppeDTOService,
                                       IMassnahmenvorschlagKatalogDTOService massnahmenvorschlagKatalogDTOService,
                                       IAchsenReferenzService achsenReferenzService,
                                       IGISService gisService,
                                       ILocalizationService localizationService,
                                       IZustandsabschnittGISService zustandsabschnittGISService,
                                       IMassnahmenvorschlagKatalogService massnahmenvorschlagKatalogService,
                                       IStrassenabschnittGISService strassenabschnittGISService)
     : base(transactionScopeProvider, dataTransferObjectServiceMappingEngine)
 {
     this.dataTransferObjectServiceMappingEngine = dataTransferObjectServiceMappingEngine;
     this.massnahmenvorschlagKatalogService      = massnahmenvorschlagKatalogService;
     this.strassenabschnittGISService            = strassenabschnittGISService;
     this.zustandsabschnittGISService            = zustandsabschnittGISService;
     this.localizationService   = localizationService;
     this.gisService            = gisService;
     this.achsenReferenzService = achsenReferenzService;
     this.massnahmenvorschlagKatalogDTOService = massnahmenvorschlagKatalogDTOService;
     this.referenzGruppeDTOService             = referenzGruppeDTOService;
 }
        public RealisiertenMassnahmenWertverlustZustandsindexProJahrGrafischePoProvider(
            IJahresIntervalService jahresIntervalService,
            IFiltererFactory filtererFactory,
            ITransactionScopeProvider transactionScopeProvider,
            IReportLocalizationService reportLocalizationService,
            IKenngroessenFruehererJahreService kenngroessenFruehererJahreService,
            INetzSummarischDetailService netzSummarischDetailService,
            IWiederbeschaffungswertKatalogService wiederbeschaffungswertKatalogService,
            IReportLegendImageService reportLegendImageService)
        {
            this.jahresIntervalService                = jahresIntervalService;
            this.filtererFactory                      = filtererFactory;
            this.transactionScopeProvider             = transactionScopeProvider;
            this.reportLocalizationService            = reportLocalizationService;
            this.kenngroessenFruehererJahreService    = kenngroessenFruehererJahreService;
            this.netzSummarischDetailService          = netzSummarischDetailService;
            this.wiederbeschaffungswertKatalogService = wiederbeschaffungswertKatalogService;
            this.reportLegendImageService             = reportLegendImageService;

            diagramPos = new Dictionary <int, List <DiagramPo> >();
            tablePos   = new Dictionary <int, List <TablePo> >();
        }
Exemplo n.º 16
0
 public AchsenSegmentDTOService(ITransactionScopeProvider transactionScopeProvider, IDataTransferObjectServiceMappingEngine dataTransferObjectServiceMappingEngine)
     : base(transactionScopeProvider, dataTransferObjectServiceMappingEngine)
 {
 }
Exemplo n.º 17
0
 public EineListeVonRealisiertenMassnahmenGeordnetNachJahrenGISPoProvider(IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider, IKenngroessenFruehererJahreService kenngroessenFruehererJahreService)
     : base(filtererFactory, transactionScopeProvider, kenngroessenFruehererJahreService)
 {
 }
 protected MandantDependentEntityServiceBase(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine,
                                             ISecurityService securityService)
     : base(transactionScopeProvider, entityServiceMappingEngine)
 {
     this.securityService = securityService;
 }
Exemplo n.º 19
0
 public MahService(ICompanyService companyService, ICompanyRepository companyRepository, IRegionRepository regionRepository,
                   IHotelService hotelService, IEntityRepository entityRepository, IEquipmentService equipmentService,
                   IRemovalService removalService, IMarketService marketService, ITransactionScopeProvider transactionScopeProvider,
                   ICountryRepository countryRepository)
 {
     this.companyService           = companyService;
     this.companyRepository        = companyRepository;
     this.regionRepository         = regionRepository;
     this.entityRepository         = entityRepository;
     this.hotelService             = hotelService;
     this.equipmentService         = equipmentService;
     this.removalService           = removalService;
     this.marketService            = marketService;
     this.transactionScopeProvider = transactionScopeProvider;
     this.countryRepository        = countryRepository;
 }
Exemplo n.º 20
0
 public KenngroessenFruehererJahreOverviewService(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine, ISecurityService securityService) : base(transactionScopeProvider, entityServiceMappingEngine, securityService)
 {
 }
Exemplo n.º 21
0
 public BaseService()
 {
     transactionScopeProvider = DependencyResolver.Current.GetService <ITransactionScopeProvider>();
 }
 public OeffentlicheVerkehrsmittelKatalogService(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine)
     : base(transactionScopeProvider, entityServiceMappingEngine)
 {
 }
Exemplo n.º 23
0
 public EineListeVonKoordiniertenMassnahmenPoProvider(IEineListeVonKoordiniertenMassnahmenMapProvider eineListeVonKoordiniertenMassnahmenMapProvider, IFiltererFactory filtererFactory, ITransactionScopeProvider transactionScopeProvider)
 {
     this.eineListeVonKoordiniertenMassnahmenMapProvider = eineListeVonKoordiniertenMassnahmenMapProvider;
     this.filtererFactory          = filtererFactory;
     this.transactionScopeProvider = transactionScopeProvider;
 }
Exemplo n.º 24
0
 public CountryController(ICountryRepository countryRepository, ICountryService countryService, IPresidentVotingRepository presidentVotingRepository, IWarService warService,
                          ITransactionsService transactionService, IWarRepository warRepository, IRegionService regionService, IRegionRepository regionRepository, IEmbargoService embargoService,
                          IEmbargoRepository embargoRepository, IWalletRepository walletRepository, IPopupService popupService, ICountryTreasureService countryTreasureService,
                          IWalletService walletService, ICompanyService companyService, IMPPService mppService, IMilitaryProtectionPactRepository mppRepository,
                          IMilitaryProtectionPactOfferRepository mppOfferRepository, ITransactionScopeProvider transactionScopeProvider, IConstructionRepository constructionRepository,
                          IConstructionService constructionService) : base(popupService)
 {
     this.countryRepository         = countryRepository;
     this.countryService            = countryService;
     this.presidentVotingRepository = presidentVotingRepository;
     this.warService               = warService;
     this.transactionService       = transactionService;
     this.warRepository            = warRepository;
     this.regionService            = regionService;
     this.regionRepository         = regionRepository;
     this.embargoService           = embargoService;
     this.embargoRepository        = embargoRepository;
     this.walletRepository         = walletRepository;
     this.countryTreasureService   = countryTreasureService;
     this.walletService            = walletService;
     this.companyService           = companyService;
     this.mppService               = mppService;
     this.mppRepository            = mppRepository;
     this.mppOfferRepository       = mppOfferRepository;
     this.transactionScopeProvider = transactionScopeProvider;
     this.constructionRepository   = constructionRepository;
     this.constructionService      = constructionService;
 }
Exemplo n.º 25
0
 public CheckOutsGISService(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine)
     : base(transactionScopeProvider, entityServiceMappingEngine)
 {
 }
Exemplo n.º 26
0
 protected EntityServiceBase(ITransactionScopeProvider transactionScopeProvider, IEntityServiceMappingEngine entityServiceMappingEngine)
 {
     this.transactionScopeProvider   = transactionScopeProvider;
     this.entityServiceMappingEngine = entityServiceMappingEngine;
 }
Exemplo n.º 27
0
 public GeoJSONParseService(IAchsenReferenzService achsenReferenzService, IGISService gisService, IAchsenSegmentService achsenSegmentService, IReferenzGruppeService referenzGruppeService, ITransactionScopeProvider transactionScopeProvider, ILocalizationService localizationService)
 {
     this.achsenReferenzService = achsenReferenzService;
     //this.zustandsabschnittGISService = zustandsabschnittGISService;
     this.achsenSegmentService     = achsenSegmentService;
     this.referenzGruppeService    = referenzGruppeService;
     this.transactionScopeProvider = transactionScopeProvider;
     this.gisService          = gisService;
     this.localizationService = localizationService;
 }
Exemplo n.º 28
0
 public IdToEntityMappingRule(ITransactionScopeProvider transactionScopeProvider)
 {
     this.transactionScopeProvider = transactionScopeProvider;
 }
Exemplo n.º 29
0
 public FahrbahnZustandService(ITransactionScopeProvider transactionScopeProvider, ISchadenMetadatenService schadenMetadatenService)
     : base(transactionScopeProvider, schadenMetadatenService)
 {
 }
 public StrassenabschnittGISDTOService(ITransactionScopeProvider transactionScopeProvider, IDataTransferObjectServiceMappingEngine dataTransferObjectServiceMappingEngine,
                                       IReferenzGruppeDTOService referenzGruppeDTOService)
     : base(transactionScopeProvider, dataTransferObjectServiceMappingEngine)
 {
     this.referenzGruppeDTOService = referenzGruppeDTOService;
 }