コード例 #1
0
 public ErrorController(
     IHttpCache cache,
     IHttpSession session,
     IDataRepository dataRepository,
     IWebTracker webTracker) : base(cache, session, dataRepository, webTracker)
 {
 }
コード例 #2
0
        void IExtensionApplication.Initialize()
        {
            ContainerRegistrar.SetupContainer();

            this.logger = ContainerRegistrar.Container.Resolve <IWebTracker>();
            AppDomain.CurrentDomain.FirstChanceException += CurrentDomainOnFirstChanceException;

            Application.DocumentManager.MdiActiveDocument.CommandWillStart += logger.TrackCommandUsage;

            var uiGenerator = ContainerRegistrar.Container.Resolve <IUiGenerator>();

            try
            {
                uiGenerator.GenerateUi(false);
            }
            catch (Exception exception)
            {
                logger.TrackException(exception);
            }

            ContainerRegistrar.Container.Release(uiGenerator);

            IKojtoCadUpdater updater;

            try
            {
                updater = ContainerRegistrar.Container.Resolve <IKojtoCadUpdater>();
                updater.UpdateKojtoCad();
            }
            catch (Exception exception)
            {
                this.logger.TrackException(exception);
            }
        }
コード例 #3
0
 public BaseController(
     IHttpCache cache,
     IHttpSession session,
     IDataRepository dataRepository,
     IWebTracker webTracker)
 {
     DataRepository = dataRepository;
     WebTracker     = webTracker;
     Cache          = cache;
     Session        = session;
 }
コード例 #4
0
 public SubmitController(
     IHttpCache cache,
     IHttpSession session,
     ISubmissionService submitService,
     IDataRepository dataRepository,
     IWebTracker webTracker,
     EmailSendingService emailSendingService)
     : base(cache, session, dataRepository, webTracker)
 {
     submissionService        = submitService;
     this.emailSendingService = emailSendingService;
 }
コード例 #5
0
 public CompareController(
     IHttpCache cache,
     IHttpSession session,
     ISearchViewService searchViewService,
     ICompareViewService compareViewService,
     IDataRepository dataRepository,
     IOrganisationBusinessLogic organisationBusinessLogic,
     IWebTracker webTracker) : base(cache, session, dataRepository, webTracker)
 {
     OrganisationBusinessLogic = organisationBusinessLogic;
     SearchViewService         = searchViewService;
     CompareViewService        = compareViewService;
 }
コード例 #6
0
        public BaseController(
            ILogger logger,
            IWebService webService,
            ISharedBusinessLogic sharedBusinessLogic)
        {
            Logger = logger;
            WebService = webService;
            AutoMapper = webService.AutoMapper;
            Cache = webService.Cache;
            Session = webService.Session;
            WebTracker = webService.WebTracker;

            SharedBusinessLogic = sharedBusinessLogic;
        }
コード例 #7
0
 public WebService(IErrorViewModelFactory errorViewModelFactory, FeatureSwitchOptions featureSwitchOptions,
                   IMapper autoMapper, IHttpCache cache, IHttpSession session, IWebHostEnvironment hostingEnvironment,
                   IShortCodesRepository shortCodesRepository, IWebTracker webTracker,
                   IEventLogger eventLogger)
 {
     ErrorViewModelFactory = errorViewModelFactory;
     FeatureSwitchOptions  = featureSwitchOptions;
     AutoMapper            = autoMapper;
     Cache                = cache;
     Session              = session;
     HostingEnvironment   = hostingEnvironment;
     ShortCodesRepository = shortCodesRepository;
     WebTracker           = webTracker;
     CustomLogger         = eventLogger;
 }
コード例 #8
0
 public RegisterController(
     IHttpCache cache,
     IHttpSession session,
     IDataRepository dataRepository,
     IWebTracker webTracker,
     EmailSendingService emailSendingService,
     AuditLogger auditLogger)
     : base(
         cache,
         session,
         dataRepository,
         webTracker)
 {
     this.emailSendingService = emailSendingService;
     this.auditLogger         = auditLogger;
 }
コード例 #9
0
 public OrganisationController(
     IHttpCache cache,
     IHttpSession session,
     ISubmissionService submitService,
     IScopeBusinessLogic scopeBL,
     IDataRepository dataRepository,
     RegistrationRepository registrationRepository,
     IWebTracker webTracker,
     EmailSendingService emailSendingService) : base(
         cache,
         session,
         dataRepository,
         webTracker)
 {
     SubmissionService        = submitService;
     ScopeBusinessLogic       = scopeBL;
     RegistrationRepository   = registrationRepository;
     this.emailSendingService = emailSendingService;
 }
コード例 #10
0
 public ViewingController(
     IHttpCache cache,
     IHttpSession session,
     IViewingService viewingService,
     ISearchViewService searchViewService,
     ICompareViewService compareViewService,
     IOrganisationBusinessLogic organisationBusinessLogic,
     ISubmissionBusinessLogic submissionBusinessLogic,
     IObfuscator obfuscator,
     IDataRepository dataRepository,
     IWebTracker webTracker,
     AutoCompleteSearchService autoCompleteSearchService,
     IFileRepository fileRepository) : base(cache, session, dataRepository, webTracker)
 {
     ViewingService            = viewingService;
     SearchViewService         = searchViewService;
     CompareViewService        = compareViewService;
     OrganisationBusinessLogic = organisationBusinessLogic;
     Obfuscator = obfuscator;
     SubmissionBusinessLogic        = submissionBusinessLogic;
     this.autoCompleteSearchService = autoCompleteSearchService;
     this.fileRepository            = fileRepository;
 }
コード例 #11
0
 public GoController(IWebTracker webTracker)
 {
     this.webTracker = webTracker;
 }