public Task <IReadOnlyList <NodeRegistrationModel> > List(IWorkContext context, string search)
        {
            var nodeIdCompare = new NodeIdCompare(search);

            var results = _data.Values
                          .Where(x => nodeIdCompare.Test(x.NodeId !))
                          .ToList();

            return(Task.FromResult <IReadOnlyList <NodeRegistrationModel> >(results));
        }
Exemplo n.º 2
0
        public async Task <IReadOnlyList <string> > List(IWorkContext context, string search)
        {
            var nodeIdCompare = new NodeIdCompare(search);

            var list = new List <string>();

            await foreach (BlobItem blobItem in _containerClient.GetBlobsAsync())
            {
                if (nodeIdCompare.Test(blobItem.Name))
                {
                    list.Add(blobItem.Name);
                }
            }

            return(list);
        }