14 lines
379 B
C#
14 lines
379 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DysonNetwork.Shared.Etcd
|
|
{
|
|
public interface IEtcdService : IDisposable
|
|
{
|
|
Task RegisterServiceAsync(string serviceName, string serviceAddress, int ttl = 15);
|
|
Task UnregisterServiceAsync();
|
|
Task<List<string>> DiscoverServicesAsync(string serviceName);
|
|
}
|
|
}
|