public SigningToolAggregate(IList <ICodeSignService> services) { // pe files defaultCodeSignService = services.Single(c => c.IsDefault); var list = from cs in services from ext in cs.SupportedFileExtensions select new { cs, ext }; this.codeSignServices = list.ToDictionary(k => k.ext.ToLowerInvariant(), v => v.cs); }
public SigningToolAggregate(IList <ICodeSignService> services, ILogger <SigningToolAggregate> logger, IOptions <Settings> settings) { this.logger = logger; makeappxPath = Path.Combine(settings.Value.WinSdkBinDirectory, "makeappx.exe"); // pe files defaultCodeSignService = services.Single(c => c.IsDefault); var list = from cs in services from ext in cs.SupportedFileExtensions select new { cs, ext }; this.codeSignServices = list.ToDictionary(k => k.ext.ToLowerInvariant(), v => v.cs); }
public SigningToolAggregate(IEnumerable <ICodeSignService> services, IOptionsSnapshot <WindowsSdkFiles> windowSdkFiles, ILogger <SigningToolAggregate> logger) { 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); }
public SigningToolAggregate(IEnumerable <ICodeSignService> services, IHostingEnvironment hostingEnvironment, ILogger <SigningToolAggregate> logger) { this.logger = logger; makeappxPath = Path.Combine(hostingEnvironment.ContentRootPath, "tools\\SDK\\makeappx.exe"); // 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); }