예제 #1
0
 /// <summary>
 /// Creates the task of request.
 /// </summary>
 /// <returns>
 /// The queued task.
 /// </returns>
 /// <param name='proc'>
 /// procedure number
 /// </param>
 /// <param name='args'>
 /// instance of arguments of request
 /// </param>
 /// <typeparam name='TReq'>
 /// type of request
 /// </typeparam>
 /// <typeparam name='TResp'>
 /// type of response
 /// </typeparam>
 protected Task <TResp> CreateTask <TReq, TResp>(uint proc, TReq args)
 {
     return(_conn.CreateTask <TReq, TResp>(CreateHeader(proc), args,
                                           _attachedToParent ? TaskCreationOptions.AttachedToParent : TaskCreationOptions.None, _token));
 }