爆肝,重构框架,你懂得

This commit is contained in:
chenchun
2023-01-01 23:06:11 +08:00
parent dbe020dc94
commit b9384afd5d
276 changed files with 5205 additions and 3281 deletions

View File

@@ -6,7 +6,7 @@ using Consul;
using Microsoft.Extensions.Options;
using Yi.Framework.Common.IOCOptions;
namespace Yi.Framework.Core.ConsulExtend
namespace Yi.Framework.Core.Consul
{
/// <summary>
/// 轮询
@@ -23,7 +23,7 @@ namespace Yi.Framework.Core.ConsulExtend
}
set
{
_iTotalCount = value >= Int32.MaxValue ? 0 : value;
_iTotalCount = value >= int.MaxValue ? 0 : value;
}
}
@@ -39,7 +39,7 @@ namespace Yi.Framework.Core.ConsulExtend
/// <returns></returns>
protected override int GetIndex()
{
return iTotalCount++ % base._CurrentAgentServiceDictionary.Length;
return iTotalCount++ % _CurrentAgentServiceDictionary.Length;
}
}
}