private static ServiceSettingsStateChangedEventArgs Map(ServiceSettingsStateContract contract) { return(new(contract.IsNetworkBlocked, Map(contract.CurrentState))); }
public void OnServiceSettingsStateChanged(ServiceSettingsStateContract e) { Action action = () => ServiceSettingsStateChanged?.Invoke(this, e); Application.Current?.Dispatcher?.BeginInvoke(action, null); }