Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以考虑让PaySharp.Core.Notify的事件返回Task<T>以支持异步 #59

Open
wossig opened this issue Oct 16, 2020 · 1 comment

Comments

@wossig
Copy link

wossig commented Oct 16, 2020

public event Func<object, CancelSucceedEventArgs, bool> CancelSucceed;
public event Func<object, RefundSucceedEventArgs, bool> RefundSucceed;
public event Func<object, UnKnownNotifyEventArgs, bool> UnknownNotify;
public event Action<object, UnknownGatewayEventArgs> UnknownGateway;

改成

public event Func<object, CancelSucceedEventArgs, Task<bool>> CancelSucceed;
public event Func<object, RefundSucceedEventArgs, Task<bool>> RefundSucceed;
public event Func<object, UnKnownNotifyEventArgs, Task<bool>> UnknownNotify;
public event Func<object, UnknownGatewayEventArgs, Task> UnknownGateway;
@Varorbc
Copy link
Owner

Varorbc commented Oct 16, 2020

后续可以考虑增加异步返回

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants