DocSpace-buildtools/common/ASC.Core.Common/Hosting/Interfaces/IRegisterInstanceManager.cs

16 lines
421 B
C#
Raw Normal View History

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