コード例 #1
0
        public WebAutomationViewModel(IManifestService manifestService, ITestCollectionService testCollectionService, IConfigurationService configurationService)
        {
            _manifestService       = manifestService;
            _testCollectionService = testCollectionService;
            _configurationService  = configurationService;

            Header = "Web Automation";

            ResultsViewModel = App.ServiceLocator.GetInstance <ResultsViewModel>();

            Manifests      = new ObservableCollection <ManifestViewModel>();
            TransitionArea = ResultsViewModel;

            LoadInformation();

            EditCategoriesCommand = new RelayCommand(EditTestCollections, t => EditTestCollectionViewModel == null);

            LoadManifestCommand = new RelayCommand(parameter =>
            {
                var dialog = new OpenFileDialog
                {
                    Filter = "Manifest File|.manifests.json",
                };

                var result = dialog.ShowDialog();
                if (result == true)
                {
                    _configurationService.TestScriptsPath = Path.GetDirectoryName(dialog.FileName);
                    _manifestService.ReloadManifest();
                    LoadInformation();
                }
            });
        }
コード例 #2
0
ファイル: MnchController.cs プロジェクト: koskedk/dwapi-mnch
 public MnchController(IMediator mediator, IManifestRepository manifestRepository,
                       IManifestService manifestService, IMnchService mnchService)
 {
     _mediator        = mediator;
     _manifestService = manifestService;
     _mnchService     = mnchService;
 }
コード例 #3
0
 public HtsController(IMediator mediator, IManifestRepository manifestRepository, IHtsClientRepository htsClientRepository, IManifestService manifestService, IHtsService htsService)
 {
     _mediator            = mediator;
     _htsClientRepository = htsClientRepository;
     _manifestService     = manifestService;
     _htsService          = htsService;
 }
コード例 #4
0
        public WebAutomationViewModel(IManifestService manifestService, ITestCollectionService testCollectionService, IConfigurationService configurationService)
        {
            _manifestService = manifestService;
            _testCollectionService = testCollectionService;
            _configurationService = configurationService;

            Header = "Web Automation";

            ResultsViewModel = App.ServiceLocator.GetInstance<ResultsViewModel>();

            Manifests = new ObservableCollection<ManifestViewModel>();
            TransitionArea = ResultsViewModel;

            LoadInformation();

            EditCategoriesCommand = new RelayCommand(EditTestCollections, t => EditTestCollectionViewModel == null);

            LoadManifestCommand = new RelayCommand(parameter =>
                {
                    var dialog = new OpenFileDialog
                        {
                            Filter = "Manifest File|.manifests.json",
                        };

                    var result = dialog.ShowDialog();
                    if (result == true)
                    {
                        _configurationService.TestScriptsPath = Path.GetDirectoryName(dialog.FileName);
                        _manifestService.ReloadManifest();
                        LoadInformation();
                    }
                });
        }
コード例 #5
0
ファイル: Splash.xaml.cs プロジェクト: windwp/THReader
        public Splash(Windows.ApplicationModel.Activation.SplashScreen splashScreen, Services.IManifestService manifestService)
        {
            _manifestService = manifestService;
            this.InitializeComponent();

            // setup size
            Action resize = () =>
            {
                MyImage.Height = splashScreen.ImageLocation.Height;
                MyImage.Width  = splashScreen.ImageLocation.Width;
                MyImage.SetValue(Canvas.TopProperty, splashScreen.ImageLocation.Top);
                MyImage.SetValue(Canvas.LeftProperty, splashScreen.ImageLocation.Left);
            };

            MyImage.ImageOpened        += (s, e) => Window.Current.Activate();
            Window.Current.SizeChanged += (s, e) => resize();
            resize();

            // background color
            var splashColor = _manifestService.SplashBackgroundColor;
            var splashBrush = new SolidColorBrush(splashColor);

            MyGrid.Background = splashBrush;

            // splash image
            var splashPath = _manifestService.SplashImage;
            var splashUrl  = System.IO.Path.Combine("ms-appx:///", splashPath);
            var splashUri  = new Uri(splashUrl);
            var splashImg  = new BitmapImage(splashUri);

            MyImage.Source = splashImg;
        }
コード例 #6
0
 public TestCollectionService(IConfigurationService configurationService, IFileService fileService, ICommandService commandService, IManifestService manifestService)
 {
     _configurationService = configurationService;
     _fileService = fileService;
     _commandService = commandService;
     _manifestService = manifestService;
 }
コード例 #7
0
 public HomeController(
     IManifestService manifestService,
     IBrowserConfigService browserConfigService)
 {
     _manifestService = manifestService;
     _browserConfigService = browserConfigService;
 }
コード例 #8
0
 public CbsController(IMediator mediator, IManifestRepository manifestRepository, IMasterPatientIndexRepository masterPatientIndexRepository, IManifestService manifestService, IMpiService mpiService)
 {
     _mediator = mediator;
     _masterPatientIndexRepository = masterPatientIndexRepository;
     _manifestService = manifestService;
     _mpiService      = mpiService;
 }
コード例 #9
0
 public HomeController(IRobotsService robotsService,
                       IManifestService manifestService,
                       IContactUsService contactUsService,
                       IUserSettingsService userSettingsService,
                       IUserProfileService userProfileService,
                       ILogService logService, IMapper mapper,
                       IVideoAttributesService videoAttributesService,
                       IBannerDetailsService bannerDetailsService,
                       ISitemapService sitemapService,
                       IOpenSearchService openSearchService,
                       IBrowserConfigService browserConfigService,
                       IFeedService feedService)
     : base(logService, mapper)
 {
     _videoAttributesService = videoAttributesService;
     _mapper = mapper;
     _userSettingsService  = userSettingsService;
     _userProfileService   = userProfileService;
     _bannerDetailsService = bannerDetailsService;
     _contactUsService     = contactUsService;
     _manifestService      = manifestService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
     _openSearchService    = openSearchService;
     _browserConfigService = browserConfigService;
     _feedService          = feedService;
 }
コード例 #10
0
        public HomeController(
            IBrowserConfigService browserConfigService,
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            IManifestService manifestService,
            IOpenSearchService openSearchService,
            IRobotsService robotsService,
            ISitemapService sitemapService,
            IOptions <AppSettings> appSettings)
        {
            this.appSettings          = appSettings;
            this.browserConfigService = browserConfigService;
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            this.manifestService   = manifestService;
            this.openSearchService = openSearchService;
            this.robotsService     = robotsService;
            this.sitemapService    = sitemapService;
        }
コード例 #11
0
        public HomeController(
            IBrowserConfigService browserConfigService,
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            IManifestService manifestService,
            IOpenSearchService openSearchService,
            IRobotsService robotsService,
            ISitemapService sitemapService,
            IOptions<AppSettings> appSettings)
        {
            this.appSettings = appSettings;
            this.browserConfigService = browserConfigService;
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            this.manifestService = manifestService;
            this.openSearchService = openSearchService;
            this.robotsService = robotsService;
            this.sitemapService = sitemapService;
        }
コード例 #12
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IRobotsService robotsService)
 {
     _browserConfigService = browserConfigService;
     _manifestService = manifestService;
     _robotsService = robotsService;
 }
コード例 #13
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IOptions <AppSettings> appSettings)
 {
     this.appSettings          = appSettings;
     this.browserConfigService = browserConfigService;
     this.manifestService      = manifestService;
 }
コード例 #14
0
        // $End-Sitemap$

        #endregion

        #region Constructors

        public HomeController(
            // $Start-Windows81IE11EdgeFavicon$
            IBrowserConfigService browserConfigService,
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
            // $Start-TargetFramework-NetFramework$
#if NET461
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            // $End-TargetFramework-NetFramework$
            IFeedService feedService,
            // $Start-TargetFramework-NetFramework$
#endif
            // $End-TargetFramework-NetFramework$
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            IManifestService manifestService,
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            IOpenSearchService openSearchService,
            // $End-Search$
            // $Start-RobotsText$
            IRobotsService robotsService,
            // $End-RobotsText$
            // $Start-Sitemap$
            ISitemapService sitemapService,
            // $End-Sitemap$
            IOptions <AppSettings> appSettings)
        {
            this.appSettings = appSettings;
            // $Start-Windows81IE11EdgeFavicon$
            this.browserConfigService = browserConfigService;
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
            // $Start-TargetFramework-NetFramework$
#if NET461
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            // $End-TargetFramework-NetFramework$
            this.feedService = feedService;
            // $Start-TargetFramework-NetFramework$
#endif
            // $End-TargetFramework-NetFramework$
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            this.manifestService = manifestService;
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            this.openSearchService = openSearchService;
            // $End-Search$
            // $Start-RobotsText$
            this.robotsService = robotsService;
            // $End-RobotsText$
            // $Start-Sitemap$
            this.sitemapService = sitemapService;
            // $End-Sitemap$
        }
コード例 #15
0
 public PublishManifestCommand(
     IManifestService manifestToolService,
     ILoggerService loggerService,
     IDateTimeService dateTimeService)
 {
     _manifestToolService = manifestToolService ?? throw new ArgumentNullException(nameof(manifestToolService));
     _loggerService       = loggerService ?? throw new ArgumentNullException(nameof(loggerService));
     _dateTimeService     = dateTimeService ?? throw new ArgumentNullException(nameof(dateTimeService));
 }
コード例 #16
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.manifestService = manifestService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
コード例 #17
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AssetService"/> class.
        /// </summary>
        /// <param name="sharedSettings">Shared settings.</param>
        /// <param name="manifestService">Asset manifest service.</param>
        /// <param name="tagBuilder">Asset builder service.</param>
        public AssetService(ISharedSettings sharedSettings, IManifestService manifestService, ITagBuilder tagBuilder)
        {
            if (sharedSettings == null)
            {
                throw new ArgumentNullException(nameof(sharedSettings));
            }

            AssetsDirectoryPath = sharedSettings.AssetsDirectoryPath;
            AssetsWebPath       = sharedSettings.AssetsWebPath;

            _manifestService = manifestService;
            _tagBuilder      = tagBuilder;
        }
 public ReleasesController(IGitService gitService,
                           IJiraService jiraService,
                           ILogger <ReleasesController> logger,
                           IManifestService manifestService,
                           IProductionMonitorService productionMonitorService,
                           IUserRepository userRepository)
 {
     _gitService               = gitService;
     _jiraService              = jiraService;
     _logger                   = logger;
     _manifestService          = manifestService;
     _productionMonitorService = productionMonitorService;
     _userRepository           = userRepository;
 }
コード例 #19
0
        // $End-Sitemap$

        #endregion

        #region Constructors

        public HomeController(
            // $Start-Windows81IE11EdgeFavicon$
            IBrowserConfigService browserConfigService,
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            IFeedService feedService,
#endif
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            IManifestService manifestService,
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            IOpenSearchService openSearchService,
            // $End-Search$
            // $Start-RobotsText$
            IRobotsService robotsService,
            // $End-RobotsText$
            // $Start-Sitemap$
            ISitemapService sitemapService,
            // $End-Sitemap$
            IOptions<AppSettings> appSettings)
        {
            this.appSettings = appSettings;
            // $Start-Windows81IE11EdgeFavicon$
            this.browserConfigService = browserConfigService;
            // $End-Windows81IE11EdgeFavicon$
            // $Start-Feed$
#if DNX451
            // The FeedService is not available for .NET Core because the System.ServiceModel.Syndication.SyndicationFeed 
            // type does not yet exist. See https://github.com/dotnet/wcf/issues/76.
            this.feedService = feedService;
#endif
            // $End-Feed$
            // $Start-AndroidChromeM39Favicons$
            this.manifestService = manifestService;
            // $End-AndroidChromeM39Favicons$
            // $Start-Search$
            this.openSearchService = openSearchService;
            // $End-Search$
            // $Start-RobotsText$
            this.robotsService = robotsService;
            // $End-RobotsText$
            // $Start-Sitemap$
            this.sitemapService = sitemapService;
            // $End-Sitemap$
        }
コード例 #20
0
 public ManifestsController(
     IUnityContainer container,
     IRegionManager regionManager,
     IEventAggregator eventAggregator,
     IConfigurationService configurationService,
     IManifestService manifestService,
     ITestCollectionService testCollectionService)
 {
     _container = container;
     _regionManager = regionManager;
     _eventAggregator = eventAggregator;
     _configurationService = configurationService;
     _manifestService = manifestService;
     _testCollectionService = testCollectionService;
 }
コード例 #21
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService,
     IOptions <AppSettings> appSettings)
 {
     _appSettings          = appSettings;
     _browserConfigService = browserConfigService;
     _manifestService      = manifestService;
     _openSearchService    = openSearchService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
 }
コード例 #22
0
 public HomeController(
     IProjectsServices projectServices,
     ILanguagesService langService,
     IPhrasesContextServices phrsContService,
     ITokenContainer tokenContainer,
     ISystemStabilityLoggsService systemStabilityLoggsService,
     IManifestService manifestService)
 {
     this.projectServices             = projectServices;
     this.langService                 = langService;
     this.phrsContService             = phrsContService;
     this.tokenContainer              = tokenContainer;
     this.systemStabilityLoggsService = systemStabilityLoggsService;
     this.manifestService             = manifestService;
 }
コード例 #23
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     _browserConfigService = browserConfigService;
     _feedService          = feedService;
     _manifestService      = manifestService;
     _openSearchService    = openSearchService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
 }
コード例 #24
0
ファイル: HomeController.cs プロジェクト: msw7007/KarmaWebApp
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.feedService          = feedService;
     this.manifestService      = manifestService;
     this.openSearchService    = openSearchService;
     this.robotsService        = robotsService;
     this.sitemapService       = sitemapService;
 }
コード例 #25
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.feedService = feedService;
     this.manifestService = manifestService;
     this.openSearchService = openSearchService;
     this.robotsService = robotsService;
     this.sitemapService = sitemapService;
 }
コード例 #26
0
        public static async Task <IEnumerable <string> > GetImageLayersAsync(
            this IManifestService manifestService, string tag, IRegistryCredentialsHost credsHost, bool isDryRun)
        {
            ManifestQueryResult manifestResult = await manifestService.GetManifestAsync(tag, credsHost, isDryRun);

            if (isDryRun)
            {
                return(Enumerable.Empty <string>());
            }

            if (!manifestResult.Manifest.ContainsKey("layers"))
            {
                JsonArray manifests = (JsonArray)(manifestResult.Manifest["manifests"] ??
                                                  throw new InvalidOperationException("Expected manifests property"));
                throw new InvalidOperationException(
                          $"'{tag}' is expected to be a concrete tag with 1 manifest. It has '{manifests.Count}' manifests.");
            }

            return(((JsonArray)manifestResult.Manifest["layers"] !)
                   .Select(layer => (layer !["digest"] ?? throw new InvalidOperationException("Expected digest property")).ToString())
コード例 #27
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService)
 {
     this.browserConfigService = browserConfigService;
     this.feedService          = feedService;
     this.manifestService      = manifestService;
     this.openSearchService    = openSearchService;
     this.robotsService        = robotsService;
     this.sitemapService       = sitemapService;
     if (_dbContext == null)
     {
         if (string.IsNullOrEmpty(NewsConnectionString))
         {
             throw new System.Exception("Connection string is not corrected....");
         }
         _dbContext = new FrontendDbContext(NewsConnectionString);
     }
 }
コード例 #28
0
 public void SetUp()
 {
     _manifestService = _serviceProvider.GetService <IManifestService>();
     _mediator        = _serviceProvider.GetService <IMediator>();
     _mnchService     = _serviceProvider.GetService <IMnchService>();
 }
コード例 #29
0
 public ManifestController(IManifestService manifestService)
 {
     _manifestService = manifestService;
 }
コード例 #30
0
 public InitializeManifestDefinitionCommand(IManifestService service, ManifestInitializationComplete callback)
 {
     manifestService = service;
     this.callback   = callback;
 }
コード例 #31
0
ファイル: DockerService.cs プロジェクト: dotnet/docker-tools
 public DockerService(IManifestService manifestToolService)
 {
     _manifestToolService = manifestToolService ?? throw new ArgumentNullException(nameof(manifestToolService));
 }
コード例 #32
0
        protected override void OnInitialized()
        {
            //general services
            _contextHolder = Services.AddNew<MigrationContextHolderService, IMigrationContextHolderService>();
            _entityLoader = Services.AddNew<OrmEntityLoaderService, IOrmEntityLoaderService>();
            _entityPersistor = Services.AddNew<EntityService, IEntityService>();
            _portalUpdater = Services.AddNew<PortalService, IPortalService>();
            _vsProjectGenerator = Services.AddNew<VSProjectService, IVSProjectService>();
            _manifestGenerator = Services.AddNew<ManifestService, IManifestService>();
            _hierarchyNodeService = Services.AddNew<HierarchyNodeService, IHierarchyNodeService>();

            //form services
            Services.AddNew<FormLayoutService, IFormLayoutService>();
            Services.AddNew<DataPathTranslationService, IDataPathTranslationService>();
            Services.AddNew<ComponentSimplificationService, IComponentSimplificationService>();
            Services.AddNew<FormSimplificationService, IFormSimplificationService>();
            Services.AddNew<FormFlatteningService, IFormFlatteningService>();
            Services.AddNew<ControlAlignmentService, IControlAlignmentService>();
            Services.AddNew<VisibilityDeterminationService, IVisibilityDeterminationService>();

            //TODO: script services

            _migrators = new IMigrationSupport[]
                {
                    BuildTransientItem<MainViewMigrationSupport>(),
                    BuildTransientItem<ToolbarMigrationSupport>(),
                    BuildTransientItem<FormMigrationSupport>(),
                    BuildTransientItem<LegacyFormMigrationSupport>(),
                    BuildTransientItem<ScriptMigrationSupport>()
                };

            base.OnInitialized();
        }
コード例 #33
0
 public ManifestController(IManifestService service)
 {
     _service = service;
 }
コード例 #34
0
 public ManifestRuleEngine(IManifestService manifestService)
 {
     this.manifestService = manifestService;
 }