// 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); }
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); }
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); }
// 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); }
private SvnPoolClient CreateClient(bool hookUI) { EnsureNames(); if (DialogOwner == null) hookUI = false; AnkhSvnPoolClient client = new AnkhSvnPoolClient(this, hookUI, _returnCookie); if (hookUI) HookUI(client); return client; }