Skip to content

Instantly share code, notes, and snippets.

@ZhenDeng
Last active May 4, 2020 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZhenDeng/4b360ebe4998d31ef903b6ef0b8ed7d4 to your computer and use it in GitHub Desktop.
Save ZhenDeng/4b360ebe4998d31ef903b6ef0b8ed7d4 to your computer and use it in GitHub Desktop.
public async Task<int> AutoCreateWelfareManagementWorkTrayItems(int defaultRunTerm, int defaultRunWeek)
{
async Task<int> Func()
{
return worktrayItemsCreatedCount;
}
return await ExecuteAsync(Func);
}
public async Task<ServiceResponse<int>> TerminateCourse(DateTime dateTime)
{
Func<Task<int>> func = async delegate
{
return terminatingProcesses.Count;
};
return await ExecuteAsync(func);
}
public class ServiceResponse<T> : ServiceResponse
{
public ServiceResponse();
public T Result { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment