Пример #1
0
 public override Stream Open(StreamID streamID)
 {
     lock (this)
     {
         MemoryStreamHeader header = GetStreamHeader(streamID);
         return(header.Stream);
     }
 }
Пример #2
0
 public override void Destroy(StreamID streamID)
 {
     lock (this)
     {
         MemoryStreamHeader header = GetStreamHeader(streamID);
         _headers.Remove(streamID);
         header.Dispose();
     }
 }
Пример #3
0
 public override void Reassign(StreamID oldStreamID, StreamID newStreamID)
 {
     lock (this)
     {
         MemoryStreamHeader header = GetStreamHeader(oldStreamID);
         _headers.Remove(oldStreamID);
         header.StreamID = newStreamID;
         _headers.Add(header);
     }
 }