示例#1
0
        static Credentials()
        {
            ApplicationDataService = ResourceLocator.ApplicationDataService;
            PasswordVault = ResourceLocator.PasswordVaultProvider;

            HummingbirdToken = (string)(ApplicationDataService["HummingbirdToken"] ?? "");
            Id = (int)(ApplicationDataService["UserId"] ?? 0);
            Authenticated = bool.Parse(ApplicationDataService["Auth"] as string ?? "False"); //why? because I can? but I shouldn't
        }
示例#2
0
        static Credentials()
        {
            ApplicationDataService = ResourceLocator.ApplicationDataService;
            PasswordVault          = ResourceLocator.PasswordVaultProvider;

            HummingbirdToken = (string)(ApplicationDataService["HummingbirdToken"] ?? "");
            Id            = (int)(ApplicationDataService["UserId"] ?? 0);
            Authenticated = bool.Parse(ApplicationDataService["Auth"] as string ?? "False"); //why? because I can? but I shouldn't
        }
 public MobileServicesAuthentication(MobileServiceClientManager clientManager, IPasswordVault passwordVault)
 {
     _clientManager = clientManager;
     _passwordVault = passwordVault;
 }
示例#4
0
 public static void RegisterPasswordVaultAdapter(IPasswordVault vault)
 {
     SimpleIoc.Default.Register<IPasswordVault>(() => vault);
 }
示例#5
0
 public static void RegisterPasswordVaultAdapter(IPasswordVault vault)
 {
     SimpleIoc.Default.Register <IPasswordVault>(() => vault);
 }