Beispiel #1
0
        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());
        }
Beispiel #2
0
        public async Task InvokeAsync(HttpContext context, AppStoreHookInterceptor hookInterceptor)
        {
            var notification = await context.Request.Body.ConvertTo <AppStoreNotification>();

            await hookInterceptor.Intercept(notification);
        }