Exemplo n.º 1
0
 public void Write(ObjectId id)
 {
     RequireLock();
     try
     {
         var b = new BinaryWriter(_os);
         id.CopyTo(b);
         b.Write('\n');
         b.Flush();
         _fLck.Release();
         b.Close();
         _os = null;
     }
     catch (Exception)
     {
         Unlock();
         throw;
     }
 }
Exemplo n.º 2
0
 public void Write(ObjectId id)
 {
     RequireLock();
     try
     {
         var b = new BinaryWriter(_os);
         id.CopyTo(b);
         b.Write('\n');
         b.Flush();
         _fLck.Release();
         b.Close();
         _os = null;
     }
     catch (Exception)
     {
         Unlock();
         throw;
     }
 }
Exemplo n.º 3
0
 public static void Write(this BinaryWriter writer, ObjectId o)
 {
     o.CopyTo(writer);
 }