Example #1
0
        public override void Terminate()
        {
            if (_host == null)
            {
                return;
            }

            if (_sync != null)
            {
                _sync.Terminate();
            }

            _host.KeyProviderPool.Remove(_prov);
            _sync = null;
            _prov = null;
            _host = null;
        }
Example #2
0
        public override bool Initialize(IPluginHost host)
        {
            if (host == null)
            {
                return(false);
            }

            _host = host;

            _prov = new SafeVaultKeyProvider();
            _host.KeyProviderPool.Add(_prov);

            _sync = new SafeVaultSync();
            _sync.Initialize(host);

            return(true);
        }