New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UWP support #1084
UWP support #1084
Conversation
f1e3486
to
2e2e986
Compare
@jskeet please now take a look. It's quite large, but most of the changes are not too important. |
@jskeet And note that this is going into its own branch (not master), so some later tidy-up/improvements is expected before it's merged into master. |
This is likely to be late next week, I'm afraid - but I'll get to it when I can. |
Jenkins test comment |
Can one of the admins verify this patch? |
ok to test |
ea3bd20
to
b0ddf2a
Compare
@jskeet This is now complete, please can you review when you have time. |
Updates #983 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, but that's all.
<IncludeSymbols>true</IncludeSymbols> | ||
<IncludeSource>true</IncludeSource> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<!-- --> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -19,10 +19,13 @@ | |||
<SignAssembly>true</SignAssembly> | |||
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> | |||
<AssemblyOriginatorKeyFile>..\..\..\google.apis.snk</AssemblyOriginatorKeyFile> | |||
<DebugType>portable</DebugType> | |||
<DebugType>pdbonly</DebugType> | |||
<DebugSymbols>true</DebugSymbols> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
verifiedOk = googleCert.VerifyHash(hash, signature, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); | ||
#else | ||
#error Unsupported platform | ||
#error Unsupported target |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
public class UwpCodeReceiver : ICodeReceiver | ||
{ | ||
/// <summary> | ||
/// Exeception thrown on authention problems. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
/// <summary> | ||
/// Instantiate an <see cref="AuthenticateException"/>. | ||
/// </summary> | ||
/// <param name="msg"></param> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
{ | ||
private static readonly Task s_completedTask = Task.FromResult(0); | ||
|
||
internal static string GenerateStoredKey(string key, Type t) => string.Format("{0}-{1}", t.FullName, key); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
/// <inheritdoc/> | ||
public Task<T> GetAsync<T>(string key) | ||
{ | ||
if (Items.TryGetValue(GenerateStoredKey(key, typeof(T)), out var value)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
vault.Remove(credential); | ||
} | ||
} | ||
catch { } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
} | ||
} | ||
|
||
private static string GenerateStoredKey(string key, Type t) => string.Format("{0}-{1}", t.FullName, key); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
limitations under the License. | ||
*/ | ||
|
||
// Why is this required? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.