Esempio n. 1
0
 public AdoApiClient(ISystemLog systemLog, IAzureDevOpsConfigurationStore store, IHttpJsonClient client, HtmlConvert htmlConvert)
 {
     this.systemLog   = systemLog;
     this.store       = store;
     this.client      = client;
     this.htmlConvert = htmlConvert;
 }
Esempio n. 2
0
 public AzureDevOpsConfigureCommands(
     ISystemLog systemLog,
     Lazy <IAzureDevOpsConfigurationStore> azureDevOpsConfiguration)
 {
     this.systemLog = systemLog;
     this.azureDevOpsConfiguration = azureDevOpsConfiguration;
 }
        public WebApiServiceCaller(
            ISystemLog systemLog)
        {
            _systemLog = systemLog;

            _javaScriptSerializer = new JavaScriptSerializer();
        }
Esempio n. 4
0
 public MutualFundEvenDataTableGateway(
     ITinyReturnsDatabaseSettings tinyReturnsDatabaseSettings,
     ISystemLog systemLog)
     : base(systemLog)
 {
     _tinyReturnsDatabaseSettings = tinyReturnsDatabaseSettings;
 }
 public GitHubConfigureCommands(
     ISystemLog systemLog,
     Lazy <IGitHubConfigurationStore> gitHubConfiguration)
 {
     this.systemLog           = systemLog;
     this.gitHubConfiguration = gitHubConfiguration;
 }
Esempio n. 6
0
        public Client()
        {
            dataTimer          = new Timer();
            dataTimer.Interval = 3000;
            dataTimer.Tick    += OnDataTimerTick;

            testConnectionTimer          = new Timer();
            testConnectionTimer.Interval = 1000;
            testConnectionTimer.Tick    += OnTestConnectionTimerTick;

            disconnectedLocking = false;
            state = ClientState.Disconnected;

            components = new Dictionary <Type, IClientComponent>();

            var chatLog = new ChatLog();

            chatLog.Client = this;
            components.Add(typeof(IChatLog), chatLog);

            systemLog        = new SystemLog();
            systemLog.Client = this;
            components.Add(typeof(ISystemLog), systemLog);

            playerInfo        = new PlayerInfo();
            playerInfo.Client = this;
            components.Add(typeof(IPlayerInfo), playerInfo);

            var mcuInfo = new McuInfo();

            mcuInfo.Client = this;
            components.Add(typeof(IMcuInfo), mcuInfo);
        }
Esempio n. 7
0
        public TzocodeController(ISystemLog Logger,

                                 IBaseRepository <DataBase.TZOCODE, Tzocode> BaseRepo)
        {
            _logger   = Logger;
            _baseRepo = BaseRepo;
        }
Esempio n. 8
0
 public JiraConfigureCommands(
     ISystemLog systemLog,
     Lazy <IJiraConfigurationStore> jiraConfiguration)
 {
     this.systemLog         = systemLog;
     this.jiraConfiguration = jiraConfiguration;
 }
Esempio n. 9
0
 public StoreRole(ISystemLog Logger,
                  IBaseRepository <DataBase.TSTRMST, Tstrmst> StoreRepo,
                  IBaseRepository <DataBase.TUSRMST, Tusrmst> UserRepo)
 {
     this._logger    = Logger;
     this._userRepo  = UserRepo;
     this._storeRepo = StoreRepo;
 }
Esempio n. 10
0
 public MailFactory(ISystemLog Logger,
                    IMailRepository MailRepo,
                    IBaseRepository <DataBase.TSYSDAT, Tsysdat> ParamRepo)
 {
     _logger    = Logger;
     _mailRepo  = MailRepo;
     _paramRepo = ParamRepo;
 }
Esempio n. 11
0
 public CMRole(ISystemLog Logger,
               IBaseRepository <DataBase.TUSRMST, Tusrmst> UserRepo,
               IBaseRepository <DataBase.TZOCODE, Tzocode> ZoRepo)
 {
     _logger   = Logger;
     _userRepo = UserRepo;
     _zoRepo   = ZoRepo;
 }
Esempio n. 12
0
 public PartFactory(ISystemLog Logger,
                    IBaseRepository <DataBase.TVUPART, Tvupart> TpartRepo,
                    IBaseRepository <DataBase.TCALLOG, Tcallog> CallogRepo)
 {
     _logger     = Logger;
     _tpartRepo  = TpartRepo;
     _callogRepo = CallogRepo;
 }
Esempio n. 13
0
 public HomeController(ISystemLog Logger,
                       ITechnicianService TechnicianService,
                       IBaseRepository <DataBase.TASSETS, Tassets> BaseRepo)
 {
     _logger            = Logger;
     _baseRepo          = BaseRepo;
     _technicianService = TechnicianService;
 }
Esempio n. 14
0
 public WorkItemLinkMapper(ISystemLog systemLog,
                           IGitHubConfigurationStore store,
                           CommentParser commentParser,
                           Lazy <IGitHubClient> githubClient)
 {
     this.systemLog     = systemLog;
     this.store         = store;
     this.commentParser = commentParser;
     this.githubClient  = githubClient;
 }
 public MemberAuthSetController(ISystemLog Logger,
                                IBaseRepository <DataBase.TUSRMST, UserBase> tusrmstRepo,
                                IBaseRepository <DataBase.TSYSROL, RoleAuth> tsysrolRepo,
                                IAspUserService AspUserService)
 {
     _tusrmstRepo    = tusrmstRepo;
     _tsysrolRepo    = tsysrolRepo;
     _logger         = Logger;
     _aspUserService = AspUserService;
 }
 public WorkItemLinkMapper(IJiraConfigurationStore store,
                           CommentParser commentParser,
                           Lazy <IJiraRestClient> jira,
                           ISystemLog systemLog)
 {
     this.store         = store;
     this.commentParser = commentParser;
     this.jira          = jira;
     this.systemLog     = systemLog;
 }
Esempio n. 17
0
        public SystemResources(
            SystemResource[] systemResources,
            ISystemLog systemLog)
        {
            _systemLog       = systemLog;
            _systemResources = systemResources;

            _systemLog.Info("Created System Resources");
            _systemLog.Info(GetSystemSummary());
        }
Esempio n. 18
0
 public VendorService(ISystemLog Logger,
                      IBaseRepository <DataBase.TTechnicianGroup, TtechnicianGroup> TechnicianGroupRepo,
                      IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo,
                      IBaseRepository <DataBase.TTechnicianGroupClaims, TtechnicianGroupClaims> TechnicianGroupClaimsRepo)
 {
     this._logger                    = Logger;
     this._tvenderRepo               = TechnicianRepo;
     this._technicianGroupRepo       = TechnicianGroupRepo;
     this._technicianGroupClaimsRepo = TechnicianGroupClaimsRepo;
 }
 public TechnicianController(ISystemLog Logger,
                             IVendorService VendorService,
                             ITechnicianService TechnicianService,
                             IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo)
 {
     _logger            = Logger;
     _technicianRepo    = TechnicianRepo;
     _technicianService = TechnicianService;
     _vendorService     = VendorService;
 }
Esempio n. 20
0
 public UserController(ISystemLog Logger,
                       IClientUserService UserService,
                       IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo,
                       IBaseRepository <DataBase.TUSRMST, Tusrmst> UserRepo,
                       IImgRepository ImgRepo)
 {
     _logger         = Logger;
     _userRepo       = UserRepo;
     _userService    = UserService;
     _technicianRepo = TechnicianRepo;
     _ImgRepo        = ImgRepo;
 }
 public MasterAuthSetController(ISystemLog logger,
                                IAspUserRepository authRepo,
                                IAspUserService aspUserService,
                                IBaseRepository <DataBase.TSYSROL, RoleAuth> tsysrolRepo,
                                IBaseRepository <DataBase.TSYSROL, Tsysrol> uptsysrolRepo)
 {
     _logger         = logger;
     _authRepo       = authRepo;
     _aspUserService = aspUserService;
     _tsysrolRepo    = tsysrolRepo;
     _uptsysrolRepo  = uptsysrolRepo;
 }
Esempio n. 22
0
 public AttachedMethods(ISystemLog Logger,
                        IBaseRepository <DataBase.TCALLOG, Tcallog> CallogRepo,
                        IBaseRepository <DataBase.TCMPDAT, Tcmpdat> CompRepo,
                        IBaseRepository <DataBase.TVENDER, Tvender> VenderRepo,
                        IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo)
 {
     _logger         = Logger;
     _compRepo       = CompRepo;
     _venderRepo     = VenderRepo;
     _callogRepo     = CallogRepo;
     _technicianRepo = TechnicianRepo;
 }
Esempio n. 23
0
 public static void BootstrapForTests(
     ISystemLog systemLog,
     IOfficeLocationDatabaseSettings officeLocationDatabaseSettings,
     ICountryWebApiSettings countryWebApiSettings,
     IEmailSettings emailSettings,
     IGroupNameConstants groupNameConstants)
 {
     BootstrapAll(systemLog,
                  officeLocationDatabaseSettings,
                  countryWebApiSettings,
                  emailSettings,
                  groupNameConstants);
 }
        public void Setup()
        {
            if (!TryGetJiraSettings(out var baseUrl, out var username, out var authToken))
            {
                Assert.Ignore(
                    $"Configure the following environment variables '{JiraBaseUrlEnvironmentVariable}', '{JiraUsernameEnvironmentVariable}', '{JiraAuthTokenEnvironmentVariable}' to run these tests.");
            }

            log = Substitute.For <ISystemLog>();

            store             = BuildJiraConfigurationStore(baseUrl, username, authToken);
            httpClientFactory = BuildOctopusHttpClientFactory(baseUrl, username, authToken);
        }
 public JiraRestClient(string baseUrl,
                       string username,
                       string?password,
                       ISystemLog systemLog,
                       IOctopusHttpClientFactory octopusHttpClientFactory)
 {
     this.baseUrl        = baseUrl;
     this.systemLog      = systemLog;
     authorizationHeader = new AuthenticationHeaderValue(
         "Basic",
         Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}")));
     httpClient = CreateHttpClient(octopusHttpClientFactory);
 }
Esempio n. 26
0
 public JPushFactory(ISystemLog Logger,
                     IPushRepository NotifyRepo,
                     IBaseRepository <DataBase.TVENDER, Tvender> TvenderRepo,
                     IBaseRepository <DataBase.TCallLogRecord, TcallogRecord> PushRecordRepo,
                     IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo,
                     IBaseRepository <DataBase.TTechnicianGroup, TtechnicianGroup> TechnicianGroupRepo)
 {
     this._logger              = Logger;
     this._notifyRepo          = NotifyRepo;
     this._tvenderRepo         = TvenderRepo;
     this._technicianRepo      = TechnicianRepo;
     this._pushRecordRepo      = PushRecordRepo;
     this._technicianGroupRepo = TechnicianGroupRepo;
 }
        public RepositoryTestsBase()
        {
            var dataConnectionStrings = new DataConnectionStringsForIntegrationTests();

            if (!AlreadyInit)
            {
                SystemLog = new SystemLogForIntegrationTests();

                DependencyManager.BootstrapForTests(SystemLog, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings,
                                                    dataConnectionStrings);

                AlreadyInit = true;
            }
        }
Esempio n. 28
0
        public SystemLog() : base()
        {
            if (isMultiDatabase)
            {
                base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name, dicmultiDatabase[this.GetType().Name].ToString());
            }
            else
            {
                base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
            }

            baseDal.OnOperationLog += new OperationLogEventHandler(OperationLog.OnOperationLog);            //如果需要记录操作日志,则实现这个事件

            dal = baseDal as ISystemLog;
        }
Esempio n. 29
0
 public TechnicianService(ISystemLog Logger,
                          ITechnicianProvider TechnicianProvider,
                          IBaseRepository <DataBase.TUSRMST, Tusrmst> tusrstRepo,
                          IBaseRepository <DataBase.TTechnicianGroup, TtechnicianGroup> TechnicianGroupRepo,
                          IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo)
 {
     this._tusrstRepo          = tusrstRepo;
     this._logger              = Logger;
     this._technicianRepo      = TechnicianRepo;
     this._technicianProvider  = TechnicianProvider;
     this._technicianGroupRepo = TechnicianGroupRepo;
     this._stickerPath         = ServerProfile.GetInstance().STICKER_PATH;
     this._technicianPath      = ServerProfile.GetInstance().TECHNICIAN_PATH;
     this._license             = ServerProfile.GetInstance().LICENSE_PATH;
 }
Esempio n. 30
0
        public void DoSomeComplicatedBusinessStuff(
            ISystemLog systemLog)
        {
            systemLog.LogInfo("Starting long running business process.");

            try
            {
                // some REALLY complicated stuff
            }
            catch (Exception e)
            {
                systemLog.LogError(e.Message);
            }

            systemLog.LogInfo("Long running business process completed.");
        }