Пример #1
0
 /// <summary>
 /// Request for uploading one slice of a session
 /// </summary>
 /// <param name="sessionUrl">URL to upload the slice.</param>
 /// <param name="client">Client used for sending the slice.</param>
 /// <param name="rangeBegin">Beginning of range of this slice</param>
 /// <param name="rangeEnd">End of range of this slice</param>
 /// <param name="totalSessionLength">Total session length. This MUST be consistent
 /// across all slice.</param>
 public UploadSliceRequest(
     string sessionUrl,
     IBaseClient client,
     long rangeBegin,
     long rangeEnd,
     long totalSessionLength)
     : base(sessionUrl, client, null)
 {
     this.RangeBegin         = rangeBegin;
     this.RangeEnd           = rangeEnd;
     this.TotalSessionLength = totalSessionLength;
     this.responseHandler    = new UploadResponseHandler();
 }
 /// <summary>
 /// Create a new UploadSessionRequest
 /// </summary>
 /// <param name="session">The IUploadSession to use in the request.</param>
 /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
 public UploadSessionRequest(IUploadSession session, IBaseClient client)
     : base(session.UploadUrl, client, null)
 {
     this.responseHandler = new UploadResponseHandler();
 }