public void Register() { foreach (var descriptor in StorageRegistry.Descriptors) { FileTransactionEx.Configure(descriptor.Scheme, false); System.Net.WebRequest.RegisterPrefix(descriptor.Scheme + ":", new KeeAnywhereWebRequestCreator(this)); } }
public void Register() { try { foreach (string strPrefix in m_vSupportedSchemes) { WebRequest.RegisterPrefix(strPrefix, this); } // scp not support operation move and delete. Then sync via scp, do without transaction (direct write to target remote file) FileTransactionEx.Configure("scp", false); } catch (Exception e) { MessageBox.Show(e.Message, "Error on Register", MessageBoxButtons.OK, MessageBoxIcon.Error); throw; } }