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:
Haacked
2013-10-08 16:19:08 -07:00
parent d8ba8ae6b6
commit 90f67dd37b
9 changed files with 63 additions and 15 deletions
+2 -3
View File
@@ -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();
}
}