コード例 #1
0
ファイル: XmlDataProcessor.cs プロジェクト: QuantumArt/QP
 public XmlDataProcessor(
     XmlSettingsModel settings,
     IXmlDbUpdateLogService xmlDbUpdateLogService,
     IApplicationInfoRepository appInfoRepository,
     IXmlDbUpdateActionCorrecterService actionCorrecterService,
     IXmlDbUpdateHttpContextProcessor httpContextProcessor,
     HttpClient client,
     IServiceProvider provider
     )
     : base(settings)
 {
     _settings = settings;
     _xmlDbUpdateReplayService = new XmlDbUpdateNonMvcReplayService(
         QPContext.CurrentDbConnectionString,
         QPContext.DatabaseType,
         CommonHelpers.GetDbIdentityInsertOptions(settings.GenerateNewFieldIds, settings.GenerateNewContentIds),
         settings.UserId,
         settings.UseGuidSubstitution,
         xmlDbUpdateLogService,
         appInfoRepository,
         actionCorrecterService,
         httpContextProcessor,
         provider
         );
 }
コード例 #2
0
 public XmlDbUpdateNonMvcReplayService(
     string connectionString,
     int userId,
     bool useGuidSubstitution,
     IXmlDbUpdateLogService dbLogService,
     IApplicationInfoRepository appInfoRepository,
     IXmlDbUpdateActionCorrecterService actionsCorrecterService,
     IXmlDbUpdateHttpContextProcessor httpContextProcessor,
     bool isQpInstalled = true)
     : base(connectionString, userId, useGuidSubstitution, dbLogService, appInfoRepository, actionsCorrecterService, httpContextProcessor)
 {
     _isQpInstalled = isQpInstalled;
 }
コード例 #3
0
ファイル: DbController.cs プロジェクト: QuantumArt/QP
 public DbController(
     IXmlDbUpdateLogService xmlDbUpdateServce,
     IApplicationInfoRepository appInfoRepository,
     IXmlDbUpdateHttpContextProcessor httpContextProcessor,
     IXmlDbUpdateActionCorrecterService actionsCorrecterService,
     IUserService userService)
 {
     _xmlDbUpdateLogService   = xmlDbUpdateServce;
     _appInfoRepository       = appInfoRepository;
     _actionsCorrecterService = actionsCorrecterService;
     _httpContextProcessor    = httpContextProcessor;
     _userService             = userService;
 }
コード例 #4
0
        public XmlDbUpdateReplayService(string connectionString, HashSet <string> identityInsertOptions, int userId, bool useGuidSubstitution, IXmlDbUpdateLogService dbLogService, IApplicationInfoRepository appInfoRepository, IXmlDbUpdateActionCorrecterService actionsCorrecterService, IXmlDbUpdateHttpContextProcessor httpContextProcessor)
        {
            Ensure.NotNullOrWhiteSpace(connectionString, "Connection string should be initialized");

            _userId = userId;
            _useGuidSubstitution   = useGuidSubstitution;
            _identityInsertOptions = identityInsertOptions ?? new HashSet <string>();

            ConnectionString = connectionString;

            _dbLogService            = dbLogService;
            _appInfoRepository       = appInfoRepository;
            _actionsCorrecterService = actionsCorrecterService;
            _httpContextProcessor    = httpContextProcessor;
        }
コード例 #5
0
 public XmlDbUpdateNonMvcReplayService(
     string connectionString,
     DatabaseType dbType,
     HashSet <string> identityInsertOptions,
     int userId,
     bool useGuidSubstitution,
     IXmlDbUpdateLogService dbLogService,
     IApplicationInfoRepository appInfoRepository,
     IXmlDbUpdateActionCorrecterService actionsCorrecterService,
     IXmlDbUpdateHttpContextProcessor httpContextProcessor,
     IServiceProvider provider,
     bool isQpInstalled = true)
     : base(connectionString, dbType, identityInsertOptions, userId, useGuidSubstitution, dbLogService, appInfoRepository, actionsCorrecterService, httpContextProcessor, provider)
 {
     _isQpInstalled = isQpInstalled;
 }
コード例 #6
0
 public XmlDataProcessor(
     XmlSettingsModel settings,
     IXmlDbUpdateLogService xmlDbUpdateLogService,
     IApplicationInfoRepository appInfoRepository,
     IXmlDbUpdateActionCorrecterService actionCorrecterService,
     IXmlDbUpdateHttpContextProcessor httpContextProcessor)
     : base(settings)
 {
     _settings = settings;
     _xmlDbUpdateReplayService = new XmlDbUpdateNonMvcReplayService(
         QPContext.CurrentDbConnectionString,
         CommonHelpers.GetDbIdentityInsertOptions(settings.DisableFieldIdentity, settings.DisableContentIdentity),
         settings.UserId,
         settings.UseGuidSubstitution,
         xmlDbUpdateLogService,
         appInfoRepository,
         actionCorrecterService,
         httpContextProcessor);
 }
コード例 #7
0
        public XmlDbUpdateReplayService(string connectionString, DatabaseType dbType, HashSet <string> identityInsertOptions, int userId, bool useGuidSubstitution, IXmlDbUpdateLogService dbLogService, IApplicationInfoRepository appInfoRepository, IXmlDbUpdateActionCorrecterService actionsCorrecterService, IXmlDbUpdateHttpContextProcessor httpContextProcessor,
                                        IServiceProvider serviceProvider = null, bool throwActionReplayed = false)
        {
            Ensure.NotNullOrWhiteSpace(connectionString, "Connection string should be initialized");

            _userId = userId;
            _useGuidSubstitution   = useGuidSubstitution;
            _identityInsertOptions = identityInsertOptions ?? new HashSet <string>();
            _throwActionReplayed   = throwActionReplayed;

            ConnectionString = connectionString;
            DbType           = dbType;

            _dbLogService            = dbLogService;
            _appInfoRepository       = appInfoRepository;
            _actionsCorrecterService = actionsCorrecterService;
            _httpContextProcessor    = httpContextProcessor;
            _serviceProvider         = serviceProvider;
        }
コード例 #8
0
 public XmlDbUpdateReplayService(string connectionString, int userId, bool useGuidSubstitution, IXmlDbUpdateLogService dbLogService, IApplicationInfoRepository appInfoRepository, IXmlDbUpdateActionCorrecterService actionsCorrecterService, IXmlDbUpdateHttpContextProcessor httpContextProcessor,
                                 IServiceProvider provider = null, bool throwActionReplayed = false)
     : this(connectionString, DatabaseType.SqlServer, null, userId, useGuidSubstitution, dbLogService, appInfoRepository, actionsCorrecterService, httpContextProcessor, provider, throwActionReplayed)
 {
 }
コード例 #9
0
 public XmlDbUpdateReplayService(string connectionString, int userId, bool useGuidSubstitution, IXmlDbUpdateLogService dbLogService, IApplicationInfoRepository appInfoRepository, IXmlDbUpdateActionCorrecterService actionsCorrecterService, IXmlDbUpdateHttpContextProcessor httpContextProcessor)
     : this(connectionString, null, userId, useGuidSubstitution, dbLogService, appInfoRepository, actionsCorrecterService, httpContextProcessor)
 {
 }