mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
Make credential store awaitable
The storage mechanism for credentials is very likely to be an async data store. So might as well play it safe and make it awaitable.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface ICredentialStore
|
||||
{
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
|
||||
Justification = "The credential store migth not be immediate")]
|
||||
Credentials GetCredentials();
|
||||
Task<Credentials> GetCredentials();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user