using System.Collections.Generic; using System.Net; using ZeroLevel.Models; namespace ZeroLevel.Network { public interface IServiceRoutesStorage { void Set(IPEndPoint endpoint); void Set(IEnumerable endpoints); void Set(string key, IPEndPoint endpoint); void Set(string key, IEnumerable endpoints); void Set(string key, string type, string group, IPEndPoint endpoint); void Set(string key, string type, string group, IEnumerable endpoints); void Remove(IPEndPoint endpoint); IEnumerable> GetAll(); IEnumerable GetKeys(); InvokeResult Get(string key); InvokeResult> GetAll(string key); InvokeResult GetByType(string type); InvokeResult> GetAllByType(string type); InvokeResult GetByGroup(string group); InvokeResult> GetAllByGroup(string group); } }