Exemplo n.º 1
0
        SvnClient( )
        {
            LoggingService.Info("SVN: SvnClient initialized");
            client               = new Client();
            client.LogMessage   += new LogMessageDelegate(SetLogMessage);
            client.Notification += new NotificationDelegate(ReceiveNotification);

            client.AuthBaton.Add(AuthenticationProvider.GetUsernameProvider());
            client.AuthBaton.Add(AuthenticationProvider.GetSimpleProvider());
            client.AuthBaton.Add(AuthenticationProvider.GetSimplePromptProvider(new SimplePromptDelegate(this.PasswordPrompt), 3));
            client.AuthBaton.Add(AuthenticationProvider.GetSslServerTrustFileProvider());
            client.AuthBaton.Add(AuthenticationProvider.GetSslServerTrustPromptProvider(new SslServerTrustPromptDelegate(this.SslServerTrustPrompt)));
            client.AuthBaton.Add(AuthenticationProvider.GetSslClientCertPasswordFileProvider());
            client.AuthBaton.Add(AuthenticationProvider.GetSslClientCertPasswordPromptProvider(new SslClientCertPasswordPromptDelegate(this.ClientCertificatePasswordPrompt), 3));
            client.AuthBaton.Add(AuthenticationProvider.GetSslClientCertFileProvider());
            client.AuthBaton.Add(AuthenticationProvider.GetSslClientCertPromptProvider(new SslClientCertPromptDelegate(this.ClientCertificatePrompt), 3));
        }