mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-29 04:56:55 +08:00
31 lines
801 B
C#
31 lines
801 B
C#
using AgileConfig.Server.Data.Entity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AgileConfig.Server.IService
|
|
{
|
|
public interface IServerNodeService: IDisposable
|
|
{
|
|
Task<ServerNode> GetAsync(string id);
|
|
Task<bool> AddAsync(ServerNode node);
|
|
|
|
Task<bool> JoinAsync(string ip, int port, string desc);
|
|
|
|
Task<bool> DeleteAsync(ServerNode node);
|
|
|
|
Task<bool> DeleteAsync(string nodeId);
|
|
|
|
Task<bool> UpdateAsync(ServerNode node);
|
|
|
|
Task<List<ServerNode>> GetAllNodesAsync();
|
|
|
|
/// <summary>
|
|
/// 根据appsettings里的nodes配置初始化服务器节点
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[Obsolete]
|
|
Task<bool> InitWatchNodeAsync();
|
|
}
|
|
}
|