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; }
public static void RegisterPasswordVaultAdapter(IPasswordVault vault) { SimpleIoc.Default.Register<IPasswordVault>(() => vault); }
public static void RegisterPasswordVaultAdapter(IPasswordVault vault) { SimpleIoc.Default.Register <IPasswordVault>(() => vault); }