コード例 #1
0
        private bool sentAsync(OutgoingAsyncBase outAsync)
        {
            lock (this)
            {
                if (!_sendAsyncRequests.Remove(outAsync))
                {
                    return(false); // The request timed-out.
                }

                if (!outAsync.sent())
                {
                    return(true);
                }
            }
            outAsync.invokeSent();
            return(true);
        }
コード例 #2
0
        private bool sentAsync(OutgoingAsyncBase outAsync)
        {
            lock (this)
            {
                if (!_sendAsyncRequests.Remove(outAsync))
                {
                    return(false); // The request timed-out.
                }
            }

            Ice.AsyncCallback cb = outAsync.sent();
            if (cb != null)
            {
                outAsync.invokeSent(cb);
            }
            return(true);
        }