Exemplo n.º 1
0
 public static void Sign(this ICakeContext context, string assembly, SignToolSignSettings settings)
 {
     if (assembly == null)
     {
         throw new ArgumentNullException("assembly");
     }
     Sign(context, new FilePath(assembly), settings);
 }
Exemplo n.º 2
0
        public static void Sign(this ICakeContext context, FilePath assembly, SignToolSignSettings settings)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly");
            }
            var paths = new[] { assembly };

            Sign(context, paths, settings);
        }
Exemplo n.º 3
0
        public static void Sign(this ICakeContext context, IEnumerable <string> assemblies, SignToolSignSettings settings)
        {
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }
            var paths = assemblies.Select(p => new FilePath(p));

            Sign(context, paths, settings);
        }
Exemplo n.º 4
0
        public static void Sign(this ICakeContext context, IEnumerable <FilePath> assemblies, SignToolSignSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            var runner = new SignToolSignRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, context.Registry);

            foreach (var assembly in assemblies)
            {
                runner.Run(assembly, settings);
            }
        }
        public static void Sign(this ICakeContext context, IEnumerable <FilePath> assemblies, SignToolSignSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (assemblies == null)
            {
                throw new ArgumentNullException(nameof(assemblies));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            var runner = new SignToolSignRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Registry);

            runner.Run(assemblies, settings);
        }