コード例 #1
0
        public Task<ResponseEnvelope> ReceiveReentrant(RequestEnvelope envelope)
        {
            #if DEBUG
                CallContext.LogicalSetData("LastMessageReceivedReentrant", envelope.Message);
            #endif

            return Receive(envelope);
        }
コード例 #2
0
        public Task ReceiveReentrantVoid(RequestEnvelope envelope)
        {
            #if DEBUG
                CallContext.LogicalSetData("LastMessageReceivedReentrantVoid", envelope.Message);
            #endif

            return ReceiveVoid(envelope);
        }
コード例 #3
0
        public async Task<ResponseEnvelope> Receive(RequestEnvelope envelope)
        {
            if (actor == null)
                await Activate(ActorPath.Deserialize(envelope.Target));

            Debug.Assert(actor != null);
            KeepAlive();

            return new ResponseEnvelope(await actor.OnReceive(envelope.Message));
        }
コード例 #4
0
        public Task ReceiveVoid(RequestEnvelope envelope)
        {
            KeepAlive();

            return actor.OnReceive(envelope.Message);
        }
コード例 #5
0
        public async Task<ResponseEnvelope> Receive(RequestEnvelope envelope)
        {
            KeepAlive();

            return new ResponseEnvelope(await actor.OnReceive(envelope.Message));
        }
コード例 #6
0
ファイル: ActorEndpoint.cs プロジェクト: zloom/Orleankka
        public Task ReceiveVoid(RequestEnvelope envelope)
        {
            KeepAlive();

            return(actor.OnReceive(envelope.Message));
        }
コード例 #7
0
ファイル: ActorEndpoint.cs プロジェクト: zloom/Orleankka
        public async Task <ResponseEnvelope> Receive(RequestEnvelope envelope)
        {
            KeepAlive();

            return(new ResponseEnvelope(await actor.OnReceive(envelope.Message)));
        }