/// <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); }
private static void OnRemoteConfigurationProviderChange(RemoteConfiguration newConfiguration) { RemoteConfiguration = newConfiguration; }
private static void OnAgentConfigurationChanged(RemoteConfiguration remoteConfiguration) { AgentConfigurationChanged?.Invoke(remoteConfiguration); }