/// <summary> /// Initializes a new instance of the <see cref="RequestGetSubtree"/> 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 RequestGetSubtree(RequestDefinitions.RequestGetSubtree request, object context, SubtreeDataCallbackDelegate callback) : base(request, context) { this.callback = callback; }
/// <summary> /// Initializes a new instance of the <see cref="RequestGetSubtree"/> class. /// </summary> /// <param name="path">Path to the node</param> /// <param name="retievalCondition">Retrieval condition for this request</param> /// <param name="options">Requset options</param> /// <param name="context">Context associated with the request</param> /// <param name="callback">Callback to invoke when the request is completed</param> /// <param name="uid">Unique id to assign to the request</param> public RequestGetSubtree(string path, string retievalCondition, GetSubtreeOptions options, object context, SubtreeDataCallbackDelegate callback, ulong uid = 0) : this(new RequestDefinitions.RequestGetSubtree(path, retievalCondition, options, MakeUid(uid)), context, callback) { }