public async Task InvokeAsync(HttpContext context, AppStoreHookInterceptor hookInterceptor) { using var streamReader = new StreamReader(context.Request.Body, Encoding.UTF8); var body = await streamReader.ReadToEndAsync(); await hookInterceptor.Intercept(body.ToNotification()); }
public async Task InvokeAsync(HttpContext context, AppStoreHookInterceptor hookInterceptor) { var notification = await context.Request.Body.ConvertTo <AppStoreNotification>(); await hookInterceptor.Intercept(notification); }