Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@arthg
Created September 21, 2020 16:50
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 arthg/c46cb81921f8930d6e4c83858f198897 to your computer and use it in GitHub Desktop.
Save arthg/c46cb81921f8930d6e4c83858f198897 to your computer and use it in GitHub Desktop.
public interace IAgentRepository
{
Task Register(Agent agent);
}
public class AgentRepository : DatabaseRepository, IAgentRepository
{
// NO WARNING
public async Task Register(Agent agent)
{
// valid code here
}
// Warning: Naming rule violation: Missing suffix: 'Async'
public async Task<bool> Foob() => await Task.FromResult(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment