Agnos.Transports.BaseTransport.BeginWrite C# (CSharp) Method

BeginWrite() public method

public BeginWrite ( int seq ) : void
seq int
return void
        public virtual void BeginWrite(int seq)
        {
            if (wlock.IsHeldByCurrentThread ()) {
                throw new IOException ("BeginWrite is not reentrant");
            }
            #if AGNOS_TRANSPORT_DEBUG
            System.Console.WriteLine("Transport.BeginWrite");
            #endif
            wlock.Acquire ();
            wseq = seq;
            wbuffer.Position = 0;
            wbuffer.SetLength (0);
            #if AGNOS_TRANSPORT_DEBUG
            System.Console.WriteLine(">> okay");
            #endif
        }