예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestGetChildren"/> class.
 /// </summary>
 /// <param name="request">Request to wrap</param>
 /// <param name="context">Context associated with the request</param>
 /// <param name="callback">Callback to invoke when the request is completed</param>
 public RequestGetChildren(RequestDefinitions.RequestGetChildren request, object context, Children2CallbackDelegate callback)
     : base(request, context)
 {
     this.callback = callback;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestGetChildren"/> class.
 /// </summary>
 /// <param name="path">Path to the node</param>
 /// <param name="context">Context associated with the request</param>
 /// <param name="watcher">Optional <see cref="IWatcher"/> to set on the node</param>
 /// <param name="callback">Callback to invoke when the request is completed</param>
 /// <param name="retrievalCondition">Retrieval conditions</param>
 /// <param name="uid">Unique id to assign to the request</param>
 public RequestGetChildren(string path, object context, IWatcher watcher, Children2CallbackDelegate callback, string retrievalCondition = null, ulong uid = 0)
     : this(new RequestDefinitions.RequestGetChildren(path, watcher, retrievalCondition, MakeUid(uid)), context, callback)
 {
 }