示例#1
0
 /// <summary>
 /// Async browse service
 /// </summary>
 /// <param name="client"></param>
 /// <param name="requestHeader"></param>
 /// <param name="view"></param>
 /// <param name="nodeToBrowse"></param>
 /// <param name="maxResultsToReturn"></param>
 /// <param name="browseDirection"></param>
 /// <param name="referenceTypeId"></param>
 /// <param name="includeSubtypes"></param>
 /// <param name="nodeClassMask"></param>
 /// <param name="resultMask"></param>
 /// <param name="ct"></param>
 /// <returns></returns>
 public static Task <BrowseResponse> BrowseAsync(this SessionClient client,
                                                 RequestHeader requestHeader, ViewDescription view, NodeId nodeToBrowse,
                                                 uint maxResultsToReturn, BrowseDirection browseDirection,
                                                 NodeId referenceTypeId, bool includeSubtypes, uint nodeClassMask,
                                                 BrowseResultMask resultMask = BrowseResultMask.All, CancellationToken ct = default)
 {
     return(client.BrowseAsync(requestHeader, view, maxResultsToReturn,
                               new BrowseDescriptionCollection {
         new BrowseDescription {
             BrowseDirection = browseDirection,
             IncludeSubtypes = includeSubtypes,
             NodeClassMask = nodeClassMask,
             NodeId = nodeToBrowse,
             ReferenceTypeId = referenceTypeId,
             ResultMask = (uint)resultMask
         }
     }, ct));
 }