mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-04 16:16:35 +08:00
爆肝,重构框架,你懂得
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user