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); }
private async void TransportLayerOnRequestReceived(object sender, RequestMessageEventArgs e) { await _engine.ProcessRequest(e.CorrelationId, e.Request); }