示例#1
0
 public OutgoingAsync(Ice.IObjectPrx prx, IOutgoingAsyncCompletionCallback completionCallback,
                      Ice.OutputStream?os = null, Ice.InputStream?iss = null) :
     base(prx, completionCallback, os, iss)
 {
     Encoding    = Protocol.getCompatibleEncoding(Proxy.IceReference.GetEncoding());
     Synchronous = false;
 }
示例#2
0
 public OutgoingAsyncT(Ice.IObjectPrx prx,
                       IOutgoingAsyncCompletionCallback completionCallback,
                       Ice.OutputStream?os = null,
                       Ice.InputStream?iss = null) :
     base(prx, completionCallback, os, iss)
 {
 }
示例#3
0
 public OutgoingAsyncT(Ice.IObjectPrx prx,
                       IOutgoingAsyncCompletionCallback completionCallback,
                       Ice.OutgoingRequestFrame?requestFrame = null,
                       Ice.InputStream?iss = null) :
     base(prx, completionCallback, requestFrame, iss)
 {
 }
示例#4
0
文件: Proxy.cs 项目: menghuan341/ice
 private static void IceI_ice_invoke(this IObjectPrx prx,
                                     string operation,
                                     bool idempotent,
                                     byte[] inEncaps,
                                     Dictionary <string, string>?context,
                                     IOutgoingAsyncCompletionCallback completed,
                                     bool synchronous) =>
 new InvokeOutgoingAsyncT(prx, completed).Invoke(operation, idempotent, inEncaps, context, synchronous);
示例#5
0
 public OutgoingAsync(IObjectPrx prx, IOutgoingAsyncCompletionCallback completionCallback,
                      OutgoingRequestFrame requestFrame, bool oneway = false) :
     base(prx, completionCallback, requestFrame)
 {
     Encoding    = Proxy.Encoding;
     Synchronous = false;
     IsOneway    = oneway;
 }
示例#6
0
 public OutgoingAsync(Ice.IObjectPrx prx, IOutgoingAsyncCompletionCallback completionCallback,
                      Ice.OutgoingRequestFrame?requestFrame = null, Ice.InputStream?iss = null, bool oneway = false) :
     base(prx, completionCallback, requestFrame, iss)
 {
     Encoding    = Proxy.Encoding;
     Synchronous = false;
     IsOneway    = oneway;
 }
示例#7
0
 protected ProxyOutgoingAsyncBase(Ice.IObjectPrx prx,
                                  IOutgoingAsyncCompletionCallback completionCallback,
                                  Ice.OutputStream?os = null,
                                  Ice.InputStream?iss = null) :
     base(prx.Communicator, completionCallback, os, iss)
 {
     Proxy = prx;
     Mode  = Ice.OperationMode.Normal;
     _cnt  = 0;
     _sent = false;
 }
示例#8
0
 protected ProxyOutgoingAsyncBase(IObjectPrx prx,
                                  IOutgoingAsyncCompletionCallback completionCallback,
                                  OutgoingRequestFrame requestFrame) :
     base(prx.Communicator, completionCallback)
 {
     Proxy        = prx;
     IsOneway     = false;
     _cnt         = 0;
     _sent        = false;
     RequestFrame = requestFrame;
 }
示例#9
0
        protected OutgoingAsyncBase(Communicator communicator, IOutgoingAsyncCompletionCallback completionCallback)
        {
            Communicator      = communicator;
            SentSynchronously = false;
            Synchronous       = false;
            _doneInSent       = false;
            _alreadySent      = false;
            State             = 0;

            _completionCallback = completionCallback;
            _completionCallback.Init(this);
        }
示例#10
0
 protected ProxyOutgoingAsyncBase(Ice.IObjectPrx prx,
                                  IOutgoingAsyncCompletionCallback completionCallback,
                                  OutgoingRequestFrame?requestFrame = null,
                                  Ice.InputStream?iss = null) :
     base(prx.Communicator, completionCallback, requestFrame, null, iss)
 {
     Proxy        = prx;
     IsIdempotent = false;
     IsOneway     = false;
     _cnt         = 0;
     _sent        = false;
 }
示例#11
0
文件: Proxy.cs 项目: yssource/ice
        private static void IceI_getConnection(IObjectPrx prx, IOutgoingAsyncCompletionCallback completed, bool synchronous)
        {
            var outgoing = new ProxyGetConnection(prx, completed);

            try
            {
                outgoing.Invoke("ice_getConnection", synchronous);
            }
            catch (Exception ex)
            {
                outgoing.Abort(ex);
            }
        }
示例#12
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);
     }
 }
示例#13
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);
     }
 }
示例#14
0
 public ProxyGetConnection(IObjectPrx prx, IOutgoingAsyncCompletionCallback completionCallback)
     : base(prx, completionCallback, null !) => IsIdempotent = false;
示例#15
0
 public OutgoingAsyncT(IObjectPrx prx, IOutgoingAsyncCompletionCallback completionCallback,
                       OutgoingRequestFrame requestFrame) :
     base(prx, completionCallback, requestFrame)
 {
 }