示例#1
0
        /// <summary>
        /// Config initialization
        /// </summary>
        private void InitializeSfdcConfig()
        {
            var config = SDKManager.InitializeConfig <SfdcConfig>(new EncryptionSettings(new HmacSHA256KeyGenerator()));

            config.SaveConfig();

            var initialRefresher = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(10)
            };

            initialRefresher.Start();
            initialRefresher.Tick += (o, e) =>
            {
                RefreshToken();
                initialRefresher.Stop();
            };
        }
        protected override void InitializeConfig()
        {
            var config = SDKManager.InitializeConfig <Config>(new EncryptionSettings(new HmacSHA256KeyGenerator()));

            config.SaveConfig();
        }