public DeveloperToolsViewModel(INavigationService navigationService, Features.BluetoothTracing.ITracingEngine tracingEngine) { _navigationService = navigationService; _tracingEngine = tracingEngine; RestartBluetoothCommand = ReactiveCommand.CreateFromTask(RestartBluetoothAsync); AddContactDeviceCommand = ReactiveCommand.CreateFromTask(AddContactDeviceAsync); RefreshContactedDevicesCommand = ReactiveCommand.CreateFromTask(RefreshContactedDevicesAsync); CleanContactedDevicesStorageCommand = ReactiveCommand.CreateFromTask(CleanContactedDevicesStorageAsync); ContactedDevices = new ReadOnlyObservableCollection <TraceViewModel>(_devicesCollection); }
public OnBoardingViewModel( INavigationService navigationService, IMainRoute mainRoute, INotificationManager notificationManager, ITracingEngine tracingEngine, ISecretsProvider secretsProvider) { GoToNextStepCommand = ReactiveUI.ReactiveCommand.CreateFromTask(HandleNextStepAsync); _navigationService = navigationService; _mainRoute = mainRoute; _notificationManager = notificationManager; _tracingEngine = tracingEngine; _secretsProvider = secretsProvider; SetInstructions(); }
public MainViewModel(ITracingEngine tracingEngine, ILoggerFactory loggerFactory) { _tracingEngine = tracingEngine; _logger = loggerFactory.CreateLogger <MainViewModel>(); }