Ejemplo n.º 1
0
 public MetadataService(MainViewModel mainViewModel, IBootProvider bootProvider, IBinarySoftwareDetector binarySoftwareDetector, IFileSystemModulesDetector fileSystemModulesDetector,
                        IMetadataSoftwareDetector metadataSoftwareDetector, IMetadataModulesDetector metadataModulesDetector, ILoggerFactory loggerFactory)
 {
     Logger                    = loggerFactory.CreateLogger <MetadataService>();
     MainViewModel             = mainViewModel;
     BootProvider              = bootProvider;
     BinarySoftwareDetector    = binarySoftwareDetector;
     FileSystemModulesDetector = fileSystemModulesDetector;
     MetadataSoftwareDetector  = metadataSoftwareDetector;
     MetadaModulesDetector     = metadataModulesDetector;
 }
Ejemplo n.º 2
0
 protected BinarySoftwareDetectorBase(IEnumerable <IProductBinarySoftwareDetector> softwareDetectors, IBinaryDecoder binaryDecoder, IBootProvider bootProvider, ICameraProvider cameraProvider,
                                      ISoftwareHashProvider hashProvider, IOptions <SoftwareDetectorSettings> settings, ILogger logger)
 {
     Settings          = settings.Value;
     Logger            = logger;
     SoftwareDetectors = softwareDetectors;
     BinaryDecoder     = binaryDecoder;
     BootProvider      = bootProvider;
     CameraProvider    = cameraProvider;
     HashProvider      = hashProvider;
 }
Ejemplo n.º 3
0
 public EncodingProvider(IBootProvider bootProvider)
 {
     BootProvider = bootProvider;
     _encodings   = new Lazy <EncodingData[]>(GetEncodings);
 }
Ejemplo n.º 4
0
        public EncodingMetaProvider(IBootProvider bootProvider)
        {
            Offsets = bootProvider.GetOffsets("PS");

            _encodings = new Lazy <Dictionary <uint, SoftwareEncodingInfo> >(GetEncodings);
        }
Ejemplo n.º 5
0
 public BootService(IVolumeContainer volumeContainer, ICategoryProvider categoryProvider, IBootProvider bootProvider)
     : base(volumeContainer)
 {
     CategoryProvider = categoryProvider;
     BootProvider     = bootProvider;
 }
Ejemplo n.º 6
0
 public PsHashSoftwareDetector(IEnumerable <IProductBinarySoftwareDetector> softwareDetectors, IBinaryDecoder binaryDecoder, IBootProvider bootProvider, ICameraProvider cameraProvider, ISoftwareHashProvider hashProvider, IOptions <SoftwareDetectorSettings> settings, ILoggerFactory loggerFactory)
     : base(softwareDetectors, binaryDecoder, bootProvider, cameraProvider, hashProvider, settings, loggerFactory.CreateLogger <PsHashSoftwareDetector>())
 {
 }
Ejemplo n.º 7
0
 public KnownPsBinarySoftwareDetector(IEnumerable <IProductBinarySoftwareDetector> softwareDetectors, IBinaryDecoder binaryDecoder, IBootProvider bootProvider, ICameraProvider cameraProvider, ISoftwareHashProvider hashProvider, IOptions <SoftwareDetectorSettings> settings, ILoggerFactory loggerFactory)
     : base(softwareDetectors, binaryDecoder, bootProvider, cameraProvider, hashProvider, settings, loggerFactory.CreateLogger <KnownPsBinarySoftwareDetector>())
 {
     Offsets = bootProvider.GetOffsets(CategoryName);
 }
Ejemplo n.º 8
0
 public ZipSoftwareMetaProvider(IProductProvider productProvider, IBinarySoftwareDetector softwareDetector, ICategoryMetaProvider categoryProvider, IBootProvider bootProvider,
                                IProductMetaProvider productMetaProvider, ICameraMetaProvider cameraProvider, ISourceMetaProvider sourceProvider,
                                IBuildMetaProvider buildProvider, ICompilerMetaProvider compilerProvider, IEncodingMetaProvider encodingProvider,
                                ILogger <ZipSoftwareMetaProvider> logger)
     : base(productProvider, bootProvider, logger)
 {
     SoftwareDetector = softwareDetector;
     CategoryProvider = categoryProvider;
     ProductProvider  = productMetaProvider;
     CameraProvider   = cameraProvider;
     SourceProvider   = sourceProvider;
     BuildProvider    = buildProvider;
     CompilerProvider = compilerProvider;
     EncodingProvider = encodingProvider;
 }
Ejemplo n.º 9
0
 protected ProductDetector(IProductProvider productProvider, IBootProvider bootProvider)
 {
     ProductProvider = productProvider;
     BootProvider    = bootProvider;
 }
Ejemplo n.º 10
0
 public PsEncodingProvider(IBootProvider bootProvider)
 {
     Offsets = bootProvider.GetOffsets("PS");
 }
Ejemplo n.º 11
0
 protected ZipMetaProvider(IProductProvider productProvider, IBootProvider bootProvider, ILogger logger)
 {
     ProductProvider = productProvider;
     BootProvider    = bootProvider;
     Logger          = logger;
 }
Ejemplo n.º 12
0
 public ZipCameraListProvider(ICameraMetaProvider cameraProvider, IProductProvider productProvider, IBootProvider bootProvider, ILogger <ZipCameraListProvider> logger)
     : base(productProvider, bootProvider, logger)
 {
     CameraProvider = cameraProvider;
 }
Ejemplo n.º 13
0
 public FileSystemSoftwareDetector(IEnumerable <IProductDetector> productDetectors, IBootProvider bootProvider, ILoggerFactory loggerFactory)
 {
     Logger           = loggerFactory.CreateLogger <FileSystemSoftwareDetector>();
     ProductDetectors = productDetectors;
     BootProvider     = bootProvider;
 }
Ejemplo n.º 14
0
 public BootableActionProvider(MainViewModel mainViewModel, IServiceActivator serviceActivator, ICategoryProvider categoryProvider, IBootProvider bootProvider)
     : base(mainViewModel, serviceActivator)
 {
     CategoryProvider = categoryProvider;
     BootProvider     = bootProvider;
 }
Ejemplo n.º 15
0
 public BootService(IVolumeContainer volumeContainer, IProductProvider productProvider, IBootProvider bootProvider)
     : base(volumeContainer)
 {
     ProductProvider = productProvider;
     BootProvider    = bootProvider;
 }
Ejemplo n.º 16
0
 public FhpProductDetector(IProductProvider productProvider, IBootProvider bootProvider)
     : base(productProvider, bootProvider)
 {
 }
Ejemplo n.º 17
0
 public BootableActionProvider(MainViewModel mainViewModel, IServiceActivator serviceActivator, IProductProvider productProvider, IBootProvider bootProvider)
     : base(mainViewModel, serviceActivator)
 {
     ProductProvider = productProvider;
     BootProvider    = bootProvider;
 }
Ejemplo n.º 18
0
 protected PsBinarySoftwareDetector(IEnumerable <IProductBinarySoftwareDetector> softwareDetectors, IBinaryDecoder binaryDecoder, IBootProvider bootProvider, ICameraProvider cameraProvider, ISoftwareHashProvider hashProvider, IOptions <SoftwareDetectorSettings> settings, ILogger logger)
     : base(softwareDetectors, binaryDecoder, bootProvider, cameraProvider, hashProvider, settings, logger)
 {
 }
Ejemplo n.º 19
0
 protected HashSoftwareDetector(IEnumerable <IProductBinarySoftwareDetector> softwareDetectors, IBinaryDecoder binaryDecoder, IBootProvider bootProvider, ICameraProvider cameraProvider, ISoftwareHashProvider hashProvider, IOptions <SoftwareDetectorSettings> settings, ILogger logger)
     : base(softwareDetectors, binaryDecoder, bootProvider, cameraProvider, hashProvider, settings, logger)
 {
     _hash2software = new Lazy <IDictionary <byte[], SoftwareInfo> >(GetHash2Software);
 }