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);
     });
 }
예제 #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);
 }