namespace Giants.Services { using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; public interface IServerRegistryStore { Task Initialize(); Task> GetServerInfos(Expression> whereExpression = null, string partitionKey = null); Task> GetServerInfos( Expression> selectExpression, Expression> whereExpression = null, string partitionKey = null); Task GetServerInfo(string ipAddress); Task UpsertServerInfo(ServerInfo serverInfo); Task DeleteServers(IEnumerable ids, string partitionKey = null); } }