ChatterBox.Client.Presentation.Shared.ViewModels.ConnectingViewModel.ConnectingViewModel C# (CSharp) Method

ConnectingViewModel() public method

public ConnectingViewModel ( IForegroundUpdateService foregroundUpdateService, ISocketConnection socketConnection ) : System
foregroundUpdateService IForegroundUpdateService
socketConnection ISocketConnection
return System
        public ConnectingViewModel(IForegroundUpdateService foregroundUpdateService,
                                   ISocketConnection socketConnection)
        {
            _connection = socketConnection;

            foregroundUpdateService.OnRegistrationStatusUpdated += OnRegistrationStatusUpdated;

            ConnectCommand = new DelegateCommand(OnConnectCommandExecute, OnConnectCommandCanExecute);
            ShowSettings = new DelegateCommand(() => OnShowSettings?.Invoke());

            UpdateStatus();
        }