Пример #1
0
        async Task __message_from_transport__(MessageWrapper message)
        {
            var handler = this.GetHandlerOrNothing(message.MessageType);

            if (handler != null)
            {
                using (var s = this.ServiceProvider.CreateScope())
                {
                    var context = new CrossServerMessageContext()
                    {
                        HandleServiceProvider = s.ServiceProvider,
                        Server  = this,
                        Message = message
                    };
                    await handler.HandleCrossServerMessage(context);
                }
            }
        }
Пример #2
0
 public Task HandleCrossServerMessage(CrossServerMessageContext context)
 {
     throw new NotImplementedException();
 }