Пример #1
0
 private void Http_OnRequest(object sender, RequestMessageEventArgs e)
 {
     if (!IsRunning)
     {
         return;
     }
     // Here we need a func to write to the context.Response
     // HttpStartup.Request needs to pass it probably.
     OnRequestReceived?.Invoke(this, e);
 }
Пример #2
0
 private async void TransportLayerOnRequestReceived(object sender, RequestMessageEventArgs e)
 {
     await _engine.ProcessRequest(e.CorrelationId, e.Request);
 }