public R4MvcGenerator( IControllerRewriterService controllerRewriter, IControllerGeneratorService controllerGenerator, IStaticFileGeneratorService staticFileGenerator, IFilePersistService filePersistService, IViewLocatorService viewLocator, IOptions <Settings> settings) { _controllerRewriter = controllerRewriter; _controllerGenerator = controllerGenerator; _staticFileGenerator = staticFileGenerator; _filePersistService = filePersistService; _viewLocator = viewLocator; _settings = settings.Value; }
public TasExplorerViewModel(IServiceProvider services) : base(services) { _errorDialogService = services.GetRequiredService <IErrorDialog>(); _threadingService = services.GetRequiredService <IThreadingService>(); _dataPersistenceService = services.GetRequiredService <IDataPersistenceService>(); _confirmDelete = services.GetRequiredService <IAppDeletionConfirmationViewModel>(); _viewLocatorService = services.GetRequiredService <IViewLocatorService>(); string existingSavedConnectionName = _dataPersistenceService.ReadStringData(ConnectionNameKey); string existingSavedConnectionAddress = _dataPersistenceService.ReadStringData(ConnectionAddressKey); bool savedConnectionCredsExist = CloudFoundryService.IsValidConnection(); if (existingSavedConnectionName == null || existingSavedConnectionAddress == null || !savedConnectionCredsExist) { TasConnection = null; } else { var restoredConnection = new CloudFoundryInstance(name: existingSavedConnectionName, apiAddress: existingSavedConnectionAddress); SetConnection(restoredConnection); } }
public ControllerGeneratorService(IViewLocatorService viewLocator) { _viewLocator = viewLocator; }
public DialogService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; _viewLocatorService = _serviceProvider.GetRequiredService <IViewLocatorService>(); }
public ControllerGeneratorService(IViewLocatorService viewLocator) { _viewLocator = viewLocator; }
public WpfDialogService(IServiceProvider serviceProvider) { ServiceProvider = serviceProvider; ViewLocatorService = ServiceProvider.GetRequiredService <IViewLocatorService>(); }
public ControllerGeneratorService(IViewLocatorService viewLocator, IOptions <Settings> settings) { _viewLocator = viewLocator; _settings = settings.Value; }