コード例 #1
0
        /// <summary>
        /// Loads the initial configuration of the agent.
        /// This function should be called once when the agent starts.
        /// </summary>
        public static void Init()
        {
            ExternalInterfaceFacade.Instance.RemoteConfigurationProvider.RemoteConfigurationChanged += OnRemoteConfigurationProviderChange;

            RemoteConfiguration remoteConfiguration = ExternalInterfaceFacade.Instance.RemoteConfigurationProvider.GetRemoteConfigurationData();

            _remoteConfiguration = remoteConfiguration;

            _isInitialized = true;
            OnAgentConfigurationChanged(remoteConfiguration);
        }
コード例 #2
0
 private static void OnRemoteConfigurationProviderChange(RemoteConfiguration newConfiguration)
 {
     RemoteConfiguration = newConfiguration;
 }
コード例 #3
0
 private static void OnAgentConfigurationChanged(RemoteConfiguration remoteConfiguration)
 {
     AgentConfigurationChanged?.Invoke(remoteConfiguration);
 }