コード例 #1
0
 public void UnlockRegion(long offset, long cb, int lockType)
 {
     this.CheckDisposed("UnlockRegion");
     MapiStreamWrapper.CallMapi("UnlockRegion", this, this.session, delegate
     {
         this.mapiStream.UnlockRegion(offset, cb, lockType);
     });
 }
コード例 #2
0
 public override void Write(byte[] buffer, int offset, int count)
 {
     this.CheckDisposed("Write");
     MapiStreamWrapper.CallMapi("Write", this, this.session, delegate
     {
         this.mapiStream.Write(buffer, offset, count);
     });
 }
コード例 #3
0
 public override void Flush()
 {
     this.CheckDisposed("Flush");
     MapiStreamWrapper.CallMapi("Flush", this, this.session, delegate
     {
         this.mapiStream.Flush();
     });
 }
コード例 #4
0
 public override void SetLength(long length)
 {
     this.CheckDisposed("SetLength");
     MapiStreamWrapper.CallMapi("SetLength", this, this.session, delegate
     {
         this.mapiStream.SetLength(length);
     });
 }
コード例 #5
0
 protected override void Dispose(bool isDisposing)
 {
     base.Dispose(isDisposing);
     if (isDisposing)
     {
         this.isDisposed = true;
         this.disposeTracker.Dispose();
         MapiStreamWrapper.CallMapi("Dispose", this, this.session, delegate
         {
             this.mapiStream.Dispose();
         });
     }
 }