示例#1
0
        protected OutgoingAsyncBase(Communicator communicator, IOutgoingAsyncCompletionCallback completionCallback)
        {
            Communicator      = communicator;
            SentSynchronously = false;
            Synchronous       = false;
            _doneInSent       = false;
            _alreadySent      = false;
            State             = 0;

            _completionCallback = completionCallback;
            _completionCallback.Init(this);
        }
示例#2
0
 protected OutgoingAsyncBase(Ice.Communicator communicator, IOutgoingAsyncCompletionCallback completionCallback,
                             Ice.OutputStream?os = null, Ice.InputStream?iss = null)
 {
     Communicator       = communicator;
     sentSynchronously_ = false;
     Synchronous        = false;
     _doneInSent        = false;
     _alreadySent       = false;
     State = 0;
     Os    = os ?? new Ice.OutputStream(communicator, Ice.Util.CurrentProtocolEncoding);
     Is    = iss ?? new Ice.InputStream(communicator, Ice.Util.CurrentProtocolEncoding);
     _completionCallback = completionCallback;
     if (_completionCallback != null)
     {
         _completionCallback.Init(this);
     }
 }
示例#3
0
 protected OutgoingAsyncBase(Ice.Communicator communicator, IOutgoingAsyncCompletionCallback completionCallback,
                             OutgoingRequestFrame?requestFrame = null, List <ArraySegment <byte> >?requestData = null,
                             Ice.InputStream?iss = null)
 {
     Communicator      = communicator;
     SentSynchronously = false;
     Synchronous       = false;
     _doneInSent       = false;
     _alreadySent      = false;
     State             = 0;
     RequestFrame      = requestFrame;
     RequestData       = requestData;
     Is = iss ?? new Ice.InputStream(communicator, Ice.Ice1Definitions.Encoding);
     _completionCallback = completionCallback;
     if (_completionCallback != null)
     {
         _completionCallback.Init(this);
     }
 }