Created
September 21, 2020 16:50
-
-
Save arthg/c46cb81921f8930d6e4c83858f198897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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