public AuthService(SessionService sessionService, UserManager <ApplicationUser> userManager, IConnectionService connectionService, IStatisticsService statisticsService, IMapper mapper) { _userManager = userManager; _sessionService = sessionService; _connectionService = connectionService; _statisticsService = statisticsService; _mapper = mapper; }
/// <summary> /// Contructor which is called from factory. All necessary services are passed here. /// </summary> /// <param name="modelService"></param> /// <param name="connectionService"></param> /// <param name="datapoolService"></param> public ExtensionComponentViewModel(IModelService modelService, IConnectionService connectionService, IDatapoolService datapoolService) { _modelService = modelService; _datapoolService = datapoolService; _connectionService = connectionService; _observing = false; InitializeDatapoolList(); InitializeCommands(); }
public static ConnectionServiceProvider ToConnectionServiceProvider(this IConnectionService ics) { if (ics is ConnectionServiceProvider) { return(ics as ConnectionServiceProvider); } ConnectionServiceProxy csproxy = ics as ConnectionServiceProxy; ConnectionServiceProvider csprovider = Reflector.GetInstanceFieldByName(csproxy, "m_RealConnectionService", ReflectionWays.SystemReflection) as ConnectionServiceProvider; return(csprovider); }
public ConnectionSetupViewModel(IConnectionService connectionService, IMeasurementManager measurementManager) { _connectionService = connectionService; measurementManager.PositionSource .Subscribe(pos => { Position = pos; }); _connectionService.DiagnosticEventsStream .Subscribe(dE => { ConnectionStatus = (ConnectionStatus)dE.Message; }); ConnectCommand.Execute(null); }
public NotificationRepository(DataContext context, IChatRepository chatRepository, IHubContext <NotificationHub> hub, Func <ServiceTypes, IConnectionService> serviceResolver) { if (context != null) { _context = context; _context.Database.EnsureCreated(); } _chatRepository = chatRepository; _hub = hub; _serivce = serviceResolver(ServiceTypes.NotificationConnectionService); }
public LoginViewModel(IConnectionService connectionService, ISettingsService settingsService, INavigationService navigationService, IAuthenticationService authenticationService, IDialogService dialogService, IWebsiteService websiteService) : base(connectionService, navigationService, dialogService) { _authenticationService = authenticationService; _settingsService = settingsService; _websiteService = websiteService; _mobileNo = settingsService.UserMobileSetting ?? string.Empty; }
/// <inheritdoc /> public PlayerEntitySessionContext([NotNull] IPeerPayloadSendService <GameServerPacketPayload> zoneSession, int connectionId, [NotNull] IConnectionService connection) { //TODO: Maybe this should be a uint? if (connectionId <= 0) { throw new ArgumentOutOfRangeException(nameof(connectionId)); } ZoneSession = zoneSession ?? throw new ArgumentNullException(nameof(zoneSession)); ConnectionId = connectionId; Connection = connection ?? throw new ArgumentNullException(nameof(connection)); }
public MessagingController( IAgentLoader agentLoader, IAgentProvider agentProvider, IConnectionService connectionService, IMessageService messageService ) { this.agentLoader = agentLoader; this.agentProvider = agentProvider; this.connectionService = connectionService; this.messageService = messageService; }
public AddAppointmentCommandHandler(IConnectionService connectionService, ISession session, IClientPatientRepository patientRepository, IUserActionBuilder userActionBuilder, Action <string> errorCallback) { this.connectionService = connectionService; this.session = session; this.patientRepository = patientRepository; this.userActionBuilder = userActionBuilder; this.errorCallback = errorCallback; }
public BoxPageViewModel(IConnectionService connectionService, string moveId) : base(connectionService) { //Boxes = new List<Box>(); user = User.Instance(); _moveId = moveId; move = user.moves.SingleOrDefault(mv => mv.id == _moveId); CreatNewBoxCommand = new Command(() => OnCreateNew(), () => !IsBusy); move.boxes.CollectionChanged += new NotifyCollectionChangedEventHandler(this.BoxesCollectionChanged); Refresh(); }
public WalletService(ICustodianBroker custodianBroker, IConnectionService connectionService, IAgencyBroker agencyBroker, IConfiguration configuration, IOtpService otpService, IWalletRepository walletRepository, ICredentialService credentialService) { _custodianBroker = custodianBroker; _connectionService = connectionService; _agencyBroker = agencyBroker; _configuration = configuration; _credentialService = credentialService; _otpService = otpService; _walletRepository = walletRepository; }
public OrderDetailsViewModel(IConnectionService connectionService, INavigationService navigationService, INotificationService notificationService, ISettingsService settingsService, IHubService hubService, IDialogService dialogService) : base(connectionService, navigationService, dialogService) { _notificationService = notificationService; _settingsService = settingsService; _hubService = hubService; }
public RMotor(string motor_name, int motor_id, int resolution, IConnectionService connection_service, IAxisMotorCommandProcessor command_processor) { _MotorName = motor_name; _MotorId = motor_id; _Resolution = resolution; _Connection_Service = connection_service; _Command_Processor = command_processor; _MotorStatus = "N/A"; _CurrentMotorPositionService = new CurrentMotorPositionService(this); }
public ExternalSourcePageViewModel(IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, ISettingsService settingsService, ICategoriesDataService categoriesDataService, IAddExtraAmountService addExtraAmountService) : base(connectionService, navigationService, dialogService) { _settingsService = settingsService; _categoriesDataService = categoriesDataService; _addExtraAmountService = addExtraAmountService; }
public LoginForm(Entry login, Entry password, Xamarin.Forms.Switch isRemind, View loginForm, View tweetForm, Label errorLabel, Button button) { this.Login = login; this.Password = password; this.IsRemind = isRemind; this.VisibilitySwitch = new VisibilitySwitch(loginForm, tweetForm); this.Error = new ErrorForm(errorLabel); button.Clicked += Button_Clicked; twitterService = new TwitterService(); connectionService = new ConnectionService(); }
public App() { InitializeComponent(); _connectionService = ConnectionService.Instance();//new MockConnectionService(); var start = new Start(_connectionService); _navPage = new NavigationPage(start); _navPage.Popped += start.OnPopped; MainPage = _navPage; System.Diagnostics.Debug.WriteLine("App initialisation complete"); }
public static ConnectionServiceProvider GetConnectionServiceProvider(this ICoreObject coreObject) { ConnectionServiceProvider connectionService = null; if (!coreObject.IsDeleted || !coreObject.IsDeleting) { IConnectionService ics = ((IDlc)coreObject.Context).WorkingContext.DlcManager.Load("Siemens.Automation.DomainServices.ConnectionService") as IConnectionService; ConnectionServiceProxy csp = ics as ConnectionServiceProxy; connectionService = Reflector.GetInstancePropertyByName(csp, "RealConnectionService", ReflectionWays.SystemReflection) as ConnectionServiceProvider; } return(connectionService); }
public CheckoutViewModel( ISettingsService settingsService, IDialogService dialogService, INavigationService navigationService, IConnectionService connectionService, IOrderDataService orderDataService) { _settingsService = settingsService; _dialogService = dialogService; _navigationService = navigationService; _connectionService = connectionService; _orderDataService = orderDataService; }
public MachineStateService( IOptionsMonitor <VsphereOptions> optionsMonitor, ILogger <MachineStateService> logger, IMemoryCache cache, IConnectionService connectionService, IServiceProvider serviceProvider ) { _optionsMonitor = optionsMonitor; _logger = logger; _connectionService = connectionService; _serviceProvider = serviceProvider; }
public OnInitConnectNetworkClientInitializable( [NotNull] IConnectionService client, [NotNull] IZoneDataService zoneServiceClient, [NotNull] IReadonlyZoneDataRepository zoneDataRepository, [NotNull] ILog logger, [NotNull] IGeneralErrorEncounteredEventPublisher generalErrorPublisher) { Client = client ?? throw new ArgumentNullException(nameof(client)); ZoneServiceClient = zoneServiceClient ?? throw new ArgumentNullException(nameof(zoneServiceClient)); ZoneDataRepository = zoneDataRepository ?? throw new ArgumentNullException(nameof(zoneDataRepository)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); GeneralErrorPublisher = generalErrorPublisher ?? throw new ArgumentNullException(nameof(generalErrorPublisher)); }
public NavigationService( IConnectionService connectionService, IDialogService dialogService, IAuthenticationService authenticationService) { _connectionService = connectionService; _dialogService = dialogService; _authenticationService = authenticationService; _mappings = new Dictionary <Type, Type>(); CreatePageViewModelMappings(); }
public HomeViewModel( IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, ICatalogDataService catalogDataService) { _connectionService = connectionService; _navigationService = navigationService; _dialogService = dialogService; _catalogDataService = catalogDataService; PiesOfTheWeak = new ObservableCollection <Pie>(); }
public ProofController( IAgentProvider agentProvider, IProofService proofService, IWalletRecordService walletRecordService, IMessageService messageService, IConnectionService connectionService) { _agentProvider = agentProvider; _proofService = proofService; _walletRecordService = walletRecordService; _messageService = messageService; _connectionService = connectionService; }
public SetExpensePageViewModel(IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, ICategoriesDataService categoriesDataService, ISettingsService settingsService, IWeeklyLimitService weeklyLimitService) : base(connectionService, navigationService, dialogService) { _categoriesDataService = categoriesDataService; _settingsService = settingsService; _weeklyLimitService = weeklyLimitService; ExpenseList = new ObservableCollection <SetExpenseModel>(); }
public MenuOptions( IIoHelper ioHelper, IConnectionService connectionService, IPackingListService packingListService, ITimeCalculator timeCalculator, IPackagesService packagesService) { _ioHelper = ioHelper; _connectionService = connectionService; _packingListService = packingListService; _timeCalculator = timeCalculator; _packagesService = packagesService; }
/// <summary> /// Construct a SelectorViewModelBase /// </summary> /// <param name="connectionService">The connection service to use for this selector ViewModel</param> public SelectorViewModelBase(IConnectionService connectionService) { this.connectionService = connectionService; ConnectButtonText = "Connect"; CanChangeBoardSelection = true; ConnectCommand = new RelayCommand(ConnectCommandExecute, ConnectCommandCanExecute); CloseCommand = new RelayCommand(CloseCommandExecute, CloseCommandCanExecute); WindowClosing = new RelayCommand(WindowClosingExecute); // This allows us to automatically close the device when the window closes //Application.Current.MainWindow.Closing += MainWindow_Closing; Boards.CollectionChanged += Boards_CollectionChanged; }
public ConnectionController( IEventAggregator eventAggregator, IConnectionService connectionService, IAgentProvider agentContextProvider, IMessageService messageService, IMemoryCache memoryCache) { _eventAggregator = eventAggregator; _connectionService = connectionService; _agentContextProvider = agentContextProvider; _messageService = messageService; _connectionCache = memoryCache; }
public HomeViewModel(IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, ICatalogDataService catalogDataService, ISettingsService settingsService) : base(connectionService, navigationService, dialogService) { _catalogDataService = catalogDataService; _settingsService = settingsService; PiesOfTheWeek = new ObservableCollection <Pie>(); MessagingCenter.Subscribe <PieCatalogViewModel>(this, "Pies_added", refreshpie); //initialise(); }
public CreateInvitationDialog(string dialogId, IServiceProvider serviceProvider, AgentBotAccessors accessors) : base(dialogId) { _accessors = accessors; _contextProvider = serviceProvider.GetRequiredService <IAgentContextProvider>(); _connectionService = serviceProvider.GetRequiredService <IConnectionService>(); _provisioningService = serviceProvider.GetRequiredService <IProvisioningService>(); _agentOptions = serviceProvider.GetService <IOptions <AgentOptions> >().Value; AddStep(CheckAgentAsync); AddStep(ProvisionAgentAsync); AddStep(CreateInvitationAsync); AddStep(RegisterNotifyAsync); }
public ConnectionsViewModel(IUserDialogs userDialogs, INavigationService navigationService, IConnectionService connectionService, IAgentProvider agentContextProvider, IEventAggregator eventAggregator, ILifetimeScope scope) : base("Connections", userDialogs, navigationService) { _connectionService = connectionService; _agentContextProvider = agentContextProvider; _eventAggregator = eventAggregator; _scope = scope; }
public SearchViewModel(IMvxMessenger messenger, IConnectionService connectionService, IDialogService dialogService) : base(messenger) { _connectionService = connectionService; _dialogService = dialogService; }
public PatientController(IConnectionService connectionService) { _connectionService = connectionService; }
public SelectorViewModel(IConnectionService service) : base(service) { Window.Current.Closed += WindowClosed; }
public TcpListenerService(IConnectionService connectionService, ITcpMessageProcessorCache tcpMessageProcessorCache) { _connectionService = connectionService; _tcpMessageProcessorCache = tcpMessageProcessorCache; }