public static void Apply(IAzureSession session)
 {
     session.RegisterComponent(AuthenticatorBuilder.AuthenticatorBuilderKey, () =>
     {
         var userPassword            = new UsernamePasswordAuthenticator();
         userPassword.Next           = new InteractiveUserAuthenticator();
         var authenticator           = new DesktopAuthenticatorBuilder();
         authenticator.Authenticator = userPassword;
         return(authenticator as IAuthenticatorBuilder);
     });
 }
Exemplo n.º 2
0
 static void InitializeDataCollection(IAzureSession session)
 {
     session.RegisterComponent(DataCollectionController.RegistryKey, () => DataCollectionController.Create(session));
 }
 public static void Apply(IAzureSession session)
 {
     session.RegisterComponent <IAuthenticatorBuilder>(AuthenticatorBuilderKey, () => AuthenticatorBuilder.Instance);
 }