Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(IPackService packService)
 {
     _packService = packService;
     Ports        = new ObservableCollection <Tuple <int, string> >(_packService.GetPorts());
     SelectedPort = Ports[0];
     ReloadPacks(SelectedPort);
     SelectedIndex = 0;
 }
Пример #2
0
        /// <summary>
        /// Initializes a new <see cref="FusionBuilder"/> with all it's dependencies.
        /// </summary>
        /// <param name="logService">Service used for logging.</param>
        /// <param name="antFactory">Factory used to create <see cref="IAnt"/> instances.</param>
        /// <param name="configStore">Store that resolved app-level configuration.</param>
        /// <param name="packService">Service that is used to get the packages from.</param>
        /// <param name="nuGetPackageResolver">Resolver that handles required NuGet packages.</param>
        /// <param name="frameworkPackageEntryFactory">Factory used for creating framework instances of <see cref="IPackageEntry"/>.</param>
        /// <param name="fusionFilters">A collection of filters used to filter instances of <see cref="IPackageEntry"/>.</param>
        /// <param name="fusionInterceptors">A collection of interceptors that intercept the creation of <see cref="IPackageEntry"/>.</param>
        public FusionBuilder(
            ILog logService,
            IAntFactory antFactory,
            IConfigStore configStore,
            IPackService packService,
            INuGetPackageResolver nuGetPackageResolver,
            IFrameworkPackageEntryFactory frameworkPackageEntryFactory,
            IEnumerable <IFusionFilter> fusionFilters,
            IEnumerable <IFusionInterceptor> fusionInterceptors)
        {
            this.logService                   = logService;
            this.configStore                  = configStore;
            this.packService                  = packService;
            this.nuGetPackageResolver         = nuGetPackageResolver;
            this.frameworkPackageEntryFactory = frameworkPackageEntryFactory;

            this.fusionFilters      = fusionFilters.StaleReadOnly();
            this.fusionInterceptors = fusionInterceptors.StaleReadOnly();

            entryFilter = antFactory
                          .CreateNew(configStore?.Value?.Fuse?.EntryPattern);

            dependencyFiles = GetDependencyFiles().StaleReadOnly();
        }
Пример #3
0
 public PackController()
 {
     service = new PackService();
 }
Пример #4
0
 /// <summary>
 /// Creates a new instance of the <see cref="PackageVersionValidator"/> with the
 /// necessary dependencies.
 /// </summary>
 /// <param name="packService">The service that is used to check if a package is deployed.</param>
 public PackageVersionValidator(IPackService packService)
 {
     this.packService = packService;
 }
Пример #5
0
 public PackController(IPackService packService, IWolfPackService wolfPackService)
 {
     _packService     = packService;
     _wolfPackService = wolfPackService;
 }
Пример #6
0
 public PacksController(IPackService packService)
 {
     _packService = packService;
 }
Пример #7
0
 public PackController(IPackService packService, PackViewModel packViewModel)
     : base(packService, packViewModel)
 {
     this.packService = packService;
 }
Пример #8
0
 public PackController(IPackService PackService)
 {
     this.PackService = PackService;
 }