增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,47 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NLog;
|
||||
using Store.Client.Apis;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Store.Client.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 缓存服务集群负载
|
||||
/// </summary>
|
||||
public class CacheServerService : ITransientDependency
|
||||
{
|
||||
private readonly CommonApi _commonApi;
|
||||
private readonly ILogger _logger;
|
||||
private readonly CommonApi _commonApi1;
|
||||
|
||||
/// <summary>
|
||||
/// 缓存服务集群负载占比
|
||||
/// </summary>
|
||||
private static Dictionary<string, int> _cacheServerRatio { get; set; } = new Dictionary<string, int>();
|
||||
|
||||
public CacheServerService(ILogger logger, CommonApi commonApi)
|
||||
{
|
||||
_commonApi = IocManager.Resolve<CommonApi>();// commonApi;
|
||||
_logger = logger;
|
||||
_commonApi1 = commonApi;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 默认数据
|
||||
/// </summary>
|
||||
private void SetDefaultData()
|
||||
{
|
||||
_cacheServerRatio.Add("https://temp-new1.taojinhu.com:10019", 5);
|
||||
_cacheServerRatio.Add("https://t3.1n11.com", 5);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user