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