public static void Recuperation(EServiceType serviceType) { lock (lockObject) { if (dicts.ContainsKey(serviceType.ServiceType)) { dicts[serviceType.ServiceType].Dispose(); dicts.Remove(serviceType.ServiceType); } } }
public static SignalRClient Resolve(EServiceType serviceType) { lock (lockObject) { if (!dicts.ContainsKey(serviceType.ServiceType)) { dicts[serviceType.ServiceType] = new SignalRClient(Define.SignalRUrl, Define.HubName, serviceType.ServiceType); dicts[serviceType.ServiceType].Connect(); } return dicts[serviceType.ServiceType]; } }
public ucServiceConfig(EServiceType serviceType) { InitializeComponent(); this.serviceType = serviceType; this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.DoubleBuffer, true); }
public ProgressSummary GetTotal(EServiceType serviceType) { lock (lockObject) { if (dictProgressInfo.ContainsKey(serviceType.ServiceType)) { var info = dictProgressInfo[serviceType.ServiceType]; if (info.ProgressSummarySpecific) { return info.ProgressSummary; } } } return null; }
public ProgressItem GetSellerAccountProgressInfo(EServiceType serviceType, string sellerAccount) { lock (lockObject) { if (dictProgressInfo.ContainsKey(serviceType.ServiceType)) { var info = dictProgressInfo[serviceType.ServiceType]; if (info.DictUserProgressCount.ContainsKey(sellerAccount)) { var progress = new ProgressItem(); progress.Total = info.DictUserProgressCount[sellerAccount].Total; progress.Value = info.DictUserProgressCount[sellerAccount].Value; return progress; } } } return null; }
private bool Equals(EServiceType serviceType) { return((ServiceType == serviceType.ServiceType) && (GroupName == serviceType.GroupName)); }
public void Register(EServiceType serviceType) { ClientConnector.Register(serviceType); }
public DefaultMutilUserProgress(EServiceType serviceType) { this.serviceType = serviceType; distributionFacility = DistributionFacilityFactory.GetDistributionFacility<ProgressInfoMessage>(); }
public ServiceInfo GetServiceInfo(EServiceType serviceType) { return ClientConnector.GetServiceInfo(serviceType); }
public ProgressSummary GetProgressTotal(EServiceType serviceType) { return ClientConnector.GetProgressTotal(serviceType); }
public ProgressItem GetProgressSellerAccountTotal(EServiceType serviceType, string sellerAccount) { return ClientConnector.GetProgressSellerAccountTotal(serviceType, sellerAccount); }
public void GetLogInfos(EServiceType serviceType, string date, string sellerAccount, string logLevel) { ClientConnector.GetLogInfos(serviceType, date, sellerAccount, logLevel); }
public IEnumerable<LogInfo> GetLogInfoDates(EServiceType serviceType) { return ClientConnector.GetLogInfoDates(serviceType); }