Exemplo n.º 1
0
 public async Task <IEnumerable <VertexInfo> > GetAllRowsForInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName));
Exemplo n.º 2
0
 public async Task <bool> ContainsInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName)).Count == 0;
Exemplo n.º 3
0
 public async Task <IEnumerable <VertexInfo> > GetAll()
 => await FileUtils.GetAll <VertexInfo>(
     _fileName,
     (vi) => true);
Exemplo n.º 4
0
 public Task <List <EndpointInfo> > GetEndpoints(string vertexName)
 => FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => e.VertexName == vertexName);
Exemplo n.º 5
0
 public Task <List <EndpointInfo> > GetShardedEndpoints(string vertexName, string endpointName)
 => FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => e.VertexName.StartsWith(vertexName + "#") &&
     e.EndpointName == endpointName);
Exemplo n.º 6
0
 public async Task <IEnumerable <EndpointInfo> > GetAll()
 => await FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => true);
Exemplo n.º 7
0
 public async Task <ShardedVertexInfo> GetLatestEntryForVertex(string vertexName)
 => (await FileUtils.GetAll <ShardedVertexInfo>(
         _fileName,
         (e) => e.VertexName == vertexName))
 .OrderByDescending(e => e.EpochId)
 .First();
Exemplo n.º 8
0
 public async Task <IEnumerable <ShardedVertexInfo> > GetEntriesForVertex(string vertexName)
 => await FileUtils.GetAll <ShardedVertexInfo>(
     _fileName,
     (e) => e.VertexName == vertexName);
Exemplo n.º 9
0
 public async Task <IEnumerable <VertexConnectionInfo> > GetAllConnectionsToVertex(string toVertex)
 => await FileUtils.GetAll <VertexConnectionInfo>(
     _fileName,
     (e) => e.ToVertex == toVertex);
Exemplo n.º 10
0
 public async Task <IEnumerable <VertexConnectionInfo> > GetAll()
 => await FileUtils.GetAll <VertexConnectionInfo>(
     _fileName,
     (e) => true);