示例#1
0
 public async Task <IEnumerable <VertexInfo> > GetAllRowsForInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName));
示例#2
0
 public async Task <bool> ContainsInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName)).Count == 0;
示例#3
0
 public async Task <IEnumerable <VertexInfo> > GetAll()
 => await FileUtils.GetAll <VertexInfo>(
     _fileName,
     (vi) => true);
示例#4
0
 public Task <List <EndpointInfo> > GetEndpoints(string vertexName)
 => FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => e.VertexName == vertexName);
示例#5
0
 public Task <List <EndpointInfo> > GetShardedEndpoints(string vertexName, string endpointName)
 => FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => e.VertexName.StartsWith(vertexName + "#") &&
     e.EndpointName == endpointName);
示例#6
0
 public async Task <IEnumerable <EndpointInfo> > GetAll()
 => await FileUtils.GetAll <EndpointInfo>(
     _fileName,
     (e) => true);
示例#7
0
 public async Task <ShardedVertexInfo> GetLatestEntryForVertex(string vertexName)
 => (await FileUtils.GetAll <ShardedVertexInfo>(
         _fileName,
         (e) => e.VertexName == vertexName))
 .OrderByDescending(e => e.EpochId)
 .First();
示例#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);