コード例 #1
0
        private void ScenariosRepository_SecretKeyChanged(object sender, Shared.EventsArgs <DataEncryptor> args)
        {
            // When file encryption secret code changed, need to resave remote scenarios with new secret code.

            foreach (var scenario in _scenarios)
            {
                if (scenario is RemoteScenario)
                {
                    SaveScenarioInternal(scenario);
                }
            }
        }
コード例 #2
0
        private void ClientFactory_ConnectionStateChanged(object sender, Shared.EventsArgs <bool> args)
        {
            var args2 = (ServiceClientFactory.ConnectionStateChangedEventArgs)args;

            if (args2.Credentials.Equals(Credentials))
            {
                foreach (var info in ServerScenariosInfos.ToArray())
                {
                    info.IsAvailableChangedCallback(new RemoteScenarioAvailabilityChangedArgs(info, args2.Value));
                }
            }
        }