public AzureSignToolCodeSignService(IHttpContextAccessor contextAccessor, ILogger <AzureSignToolCodeSignService> logger, IAppxFileFactory appxFileFactory, IHostingEnvironment hostingEnvironment)
 {
     this.contextAccessor = contextAccessor;
     this.logger          = logger;
     this.appxFileFactory = appxFileFactory;
     keyVaultSignToolPath = Path.Combine(hostingEnvironment.ContentRootPath, "tools\\AzureSignTool\\AzureSignTool.exe");
 }
Exemple #2
0
 public AzureSignToolCodeSignService(ILogger <AzureSignToolCodeSignService> logger,
                                     IAppxFileFactory appxFileFactory,
                                     IKeyVaultService keyVaultService,
                                     IHostingEnvironment hostingEnvironment,
                                     ITelemetryLogger telemetryLogger)
 {
     this.logger          = logger;
     this.appxFileFactory = appxFileFactory;
     this.keyVaultService = keyVaultService;
     this.telemetryLogger = telemetryLogger;
     keyVaultSignToolPath = Path.Combine(hostingEnvironment.ContentRootPath, "tools\\AzureSignTool\\AzureSignTool.exe");
     signToolName         = Path.GetFileName(keyVaultSignToolPath);
 }
Exemple #3
0
        public SigningToolAggregate(IEnumerable <ICodeSignService> services,
                                    IAppxFileFactory appxFileFactory,
                                    IOptionsSnapshot <WindowsSdkFiles> windowSdkFiles,
                                    ILogger <SigningToolAggregate> logger)
        {
            this.appxFileFactory = appxFileFactory;
            this.logger          = logger;
            makeappxPath         = windowSdkFiles.Value.MakeAppxPath;

            // pe files
            defaultCodeSignService = services.Single(c => c.IsDefault);

            var list = from cs in services
                       from ext in cs.SupportedFileExtensions
                       select new { cs, ext };

            codeSignServices = list.ToDictionary(k => k.ext.ToLowerInvariant(), v => v.cs);
        }