示例#1
0
        // Use separate function to delay loading the SharpSvn.UI.dll
        private void HookUI(AnkhSvnPoolClient client)
        {
            // Let SharpSvnUI handle login and SSL dialogs
            SvnUIBindArgs bindArgs = new SvnUIBindArgs();

            bindArgs.ParentWindow = new OwnerWrapper(DialogOwner);
            bindArgs.UIService    = GetService <IUIService>();
            bindArgs.Synchronizer = _syncher;

            if (Config != null && Config.Instance.PreferPuttyAsSSH)
            {
                client.Configuration.SshOverride = SharpSvn.Implementation.SvnSshOverride.ForceSharpPlinkAfterConfig;
            }

            SvnUI.Bind(client, bindArgs);
        }
示例#2
0
        public bool ReturnClient(SvnPoolClient poolClient)
        {
            AnkhSvnPoolClient pc = poolClient as AnkhSvnPoolClient;

            if (pc != null && pc.ReturnCookie == _returnCookie)
            {
                Stack <SvnPoolClient> stack = pc.UIEnabled ? _uiClients : _clients;

                lock (stack)
                {
                    if (stack.Count < MaxPoolSize)
                    {
                        stack.Push(pc);
                        return(true);
                    }
                }
            }
            return(false);
        }
示例#3
0
        private SvnPoolClient CreateClient(bool hookUI)
        {
            EnsureNames();

            if (DialogOwner == null)
            {
                hookUI = false;
            }

            AnkhSvnPoolClient client = new AnkhSvnPoolClient(this, hookUI, _returnCookie);

            client.Configuration.KeepAllExtensionsOnConflict = SvnOverride.WhenNotSet;

            if (hookUI)
            {
                HookUI(client);
            }

            return(client);
        }
示例#4
0
        // Use separate function to delay loading the SharpSvn.UI.dll
        private void HookUI(AnkhSvnPoolClient client)
        {
            // Let SharpSvnUI handle login and SSL dialogs
            SvnUIBindArgs bindArgs = new SvnUIBindArgs();
            bindArgs.ParentWindow = new OwnerWrapper(DialogOwner);
            bindArgs.UIService = GetService<IUIService>();
            bindArgs.Synchronizer = _syncher;

            SvnUI.Bind(client, bindArgs);
        }
示例#5
0
        private SvnPoolClient CreateClient(bool hookUI)
        {
            EnsureNames();

            if (DialogOwner == null)
                hookUI = false;

            AnkhSvnPoolClient client = new AnkhSvnPoolClient(this, hookUI, _returnCookie);

            if (hookUI)
                HookUI(client);

            return client;
        }