DocSpace-buildtools/common/ASC.Core.Common/Hosting/Interfaces/IRegisterInstanceManager.cs
2022-02-24 17:15:39 +03:00

16 lines
421 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using ASC.Common;
using Microsoft.Extensions.Hosting;
namespace ASC.Core.Common.Hosting.Interfaces;
[Scope]
public interface IRegisterInstanceManager<T> where T : IHostedService
{
Task Register(string instanceId);
Task UnRegister(string instanceId);
Task<bool> IsActive(string instanceId);
Task<List<string>> DeleteOrphanInstances();
}