コード例 #1
0
        private async Task <IResultSegment <FunctionIndexEntry> > Read1Async(string hostName)
        {
            var snapshots = await GetSnapshotsAsync(hostName);

            var results = Array.ConvertAll(snapshots, x =>
                                           FunctionIndexEntry.Create(
                                               FunctionIndexEntry.CreateOtherMetadata(x), x.HostVersion));

            return(new ResultSegment <FunctionIndexEntry>(results, null));
        }
コード例 #2
0
 private IDictionary <string, string> CreateOtherMetadata(FunctionSnapshot snapshot)
 {
     return(FunctionIndexEntry.CreateOtherMetadata(snapshot));
 }