Beispiel #1
0
 public static void NewAuthentication(this IObjectSpaceProvider objectSpaceProvider, Platform platform = Platform.Win)
 {
     objectSpaceProvider.NewAuthentication <MSAuthentication>((authentication, bytes) => authentication.Token = bytes.GetString(), "Microsoft", platform);
 }
Beispiel #2
0
 public static void NewAuthentication(this IObjectSpaceProvider objectSpaceProvider, Platform platform = Platform.Win)
 {
     objectSpaceProvider.NewAuthentication <GoogleAuthentication>((authentication, bytes) => {
         authentication.OAuthToken = (Dictionary <string, string>) new DictionaryValueConverter().ConvertFromStorageType(bytes.GetString());
     }, "Google", platform);
 }