public async override Task TicketReceived(TicketReceivedContext context) { //如果不调用HandleResponse,默认的行为是重定向到RedirectUri属性指定的地址。 //在这里不需要定向 var handleResponseContext = new HandleResponseContext(context.HttpContext , context.Scheme , context.Options as WeChatClientOptions , context.Principal); await HandleResponse(handleResponseContext); context.HandleResponse(); await base.TicketReceived(context); }
public virtual Task HandleResponse(HandleResponseContext context) => OnHandleResponse(context);