You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Services/ServiceAction.cs

18 lines
298 B

namespace Connected.Services;
public abstract class ServiceAction<TArgs> : ServiceOperation<TArgs>, IAction<TArgs>
where TArgs : IDto
{
public async Task Invoke(TArgs e)
{
Arguments = e;
await OnInvoke();
}
protected virtual async Task OnInvoke()
{
await Task.CompletedTask;
}
}