25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- using AppleAuth.Enums;
- using AppleAuth.Interfaces;
- using System;
-
- namespace AppleAuth.Extensions
- {
- public static class AppleErrorExtensions
- {
- public static AuthorizationErrorCode GetAuthorizationErrorCode(this IAppleError error)
- {
- if (error.Domain == "com.apple.AuthenticationServices.AuthorizationError" &&
- Enum.IsDefined(typeof(AuthorizationErrorCode), error.Code))
- {
- return (AuthorizationErrorCode)error.Code;
- }
-
- return AuthorizationErrorCode.Unknown;
- }
- }
- }
|