コード例 #1
0
ファイル: FileVertexProvider.cs プロジェクト: klawrawkz/CRA
 public async Task <IEnumerable <VertexInfo> > GetAllRowsForInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName));
コード例 #2
0
ファイル: FileVertexProvider.cs プロジェクト: klawrawkz/CRA
 public async Task <bool> ContainsInstance(string instanceName)
 => (await FileUtils.GetAll <VertexInfo>(
         _fileName,
         (vi) => vi.InstanceName == instanceName)).Count == 0;
コード例 #3
0
ファイル: FileVertexProvider.cs プロジェクト: klawrawkz/CRA
 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);
コード例 #9
0
 public async Task <IEnumerable <VertexConnectionInfo> > GetAllConnectionsToVertex(string toVertex)
 => await FileUtils.GetAll <VertexConnectionInfo>(
     _fileName,
     (e) => e.ToVertex == toVertex);
コード例 #10
0
 public async Task <IEnumerable <VertexConnectionInfo> > GetAll()
 => await FileUtils.GetAll <VertexConnectionInfo>(
     _fileName,
     (e) => true);