Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestGetAcl"/> 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 RequestGetAcl(RequestDefinitions.RequestGetAcl request, object context, AclCallbackDelegate callback)
     : base(request, context)
 {
     this.callback = callback;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestGetAcl"/> class.
 /// </summary>
 /// <param name="path">Path to the node</param>
 /// <param name="context">Context associated with the request</param>
 /// <param name="stat">Expected <see cref="IStat"/> associated with the node</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 RequestGetAcl(string path, object context, IStat stat, AclCallbackDelegate callback, ulong uid = 0)
     : this(new RequestDefinitions.RequestGetAcl(path, stat, MakeUid(uid)), context, callback)
 {
 }