Ejemplo n.º 1
0
 public FtClient(SslStream sslClient)
 {
     Client            = sslClient;
     m_readAllHelper   = new ReadAggregatorWritePassthrough(sslClient);
     Serializer        = new SerializationAdapter(m_readAllHelper);
     SerializerAsync   = new SerializationAdapterAsync(m_readAllHelper);
     Deserializer      = new DeserializationAdapter(m_readAllHelper);
     DeserializerAsync = new DeserializationAdapterAsync(m_readAllHelper);
 }
Ejemplo n.º 2
0
        public void Close()
        {
            if (!m_disposed)
            {
                m_readAllHelper   = null;
                Serializer        = null;
                SerializerAsync   = null;
                Deserializer      = null;
                DeserializerAsync = null;

                Client.Close();
                Client = null;

                m_disposed = true;
            }
        }