コード例 #1
0
        public DeviceInspectionGrain(RestClient client, MsvClientCtrlSDK msv, IMapper mapper)
        {
            Mapper      = mapper;
            _restClient = client;
            _msvClient  = msv;

            _onlineMembers = new List <int>();
            _monitorMember = new Dictionary <string, int>();
        }
コード例 #2
0
 public DeviceMonitorService(IServiceProvider services, IGrainIdentity id, Silo silo,
                             Microsoft.Extensions.Logging.ILoggerFactory loggerFactory,
                             IGrainFactory grainFactory, MsvClientCtrlSDK msv, RestClient client)
     : base(id, silo, loggerFactory)
 {
     Logger = Sobey.Core.Log.LoggerManager.GetLogger("MonitorService");
     _lstTimerScheduleDevice = new List <ChannelInfo>();
     _timer        = null;
     _msvClient    = msv;
     _restClient   = client;
     _grainFactory = grainFactory;
     _grainKey     = string.Empty;
 }
コード例 #3
0
ファイル: TaskHandlerBase.cs プロジェクト: xuecat/IngestTask
 public TaskHandlerBase(RestClient rest, MsvClientCtrlSDK msv)
 {
     Logger     = LoggerManager.GetLogger("TaskHandlerBase");
     restClient = rest;
     msvClient  = msv;
 }
コード例 #4
0
 public VtrBatchTaskHandler(RestClient rest, MsvClientCtrlSDK msv)
     : base(rest, msv)
 {
 }
コード例 #5
0
 public NormalTaskHandler(RestClient rest, MsvClientCtrlSDK msv, IConfiguration configuration)
     : base(rest, msv)
 {
     taskStartPrevious = configuration.GetSection("Task:TaskStartPrevious").Get<int>();
     taskStopBehind = configuration.GetSection("Task:TaskStopBehind").Get<int>();
 }