示例#1
0
 /// <summary>
 /// Closes the GridFS stream.
 /// </summary>
 public virtual void Close()
 {
     _wrappedStream.Close();
 }
示例#2
0
 /// <summary>
 /// Closes the Stream and completes the upload operation.
 /// </summary>
 /// <remarks>
 /// Any data remaining in the Stream is flushed to the server and the GridFS files collection document is written.
 /// </remarks>
 /// <param name="cancellationToken">The cancellation token.</param>
 public void Close(CancellationToken cancellationToken)
 {
     _wrappedStream.Close(cancellationToken);
 }