Sic.Framework/MECF.Framework.Common/MECF/Framework/Common/OperationCenter/InvokeClient.cs

31 lines
466 B
C#
Raw Normal View History

2023-04-13 11:51:03 +08:00
using Aitex.Core.Util;
namespace MECF.Framework.Common.OperationCenter
{
public class InvokeClient : Singleton<InvokeClient>
{
private IInvokeService _service;
public bool InProcess { get; set; }
public IInvokeService Service
{
get
{
if (_service == null)
{
if (InProcess)
{
_service = new InvokeService();
}
else
{
_service = new InvokeServiceClient();
}
}
return _service;
}
}
}
}