mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-23 14:45:37 +01:00
25 lines
869 B
C#
25 lines
869 B
C#
namespace Giants.Services
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq.Expressions;
|
|
using System.Threading.Tasks;
|
|
|
|
public interface IServerRegistryStore
|
|
{
|
|
Task DeleteServer(string id, string partitionKey = null);
|
|
|
|
Task DeleteServers(IEnumerable<string> ids, string partitionKey = null);
|
|
|
|
Task<IEnumerable<ServerInfo>> GetServerInfos(Expression<Func<ServerInfo, bool>> whereExpression = null, bool includeExpired = false, string partitionKey = null);
|
|
|
|
Task<IEnumerable<TSelect>> GetServerInfos<TSelect>(
|
|
Expression<Func<ServerInfo, TSelect>> selectExpression,
|
|
bool includeExpired = false,
|
|
Expression<Func<ServerInfo, bool>> whereExpression = null,
|
|
string partitionKey = null);
|
|
|
|
Task UpsertServerInfo(ServerInfo serverInfo);
|
|
}
|
|
}
|