Ejemplo n.º 1
0
 public int ExecuteAssembly(string assemblyFile, string?[]?args, byte[]?hashValue, Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm)
 {
     throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); // This api is only meaningful for very specific partial trust/CAS scenarios
 }
Ejemplo n.º 2
0
        public void Ctor_AssemblyHashAlgorithm(Configuration.Assemblies.AssemblyHashAlgorithm algorithmId)
        {
            var attribute = new AssemblyAlgorithmIdAttribute(algorithmId);

            Assert.Equal((uint)algorithmId, attribute.AlgorithmId);
        }
Ejemplo n.º 3
0
 public static Assembly LoadFrom(String assemblyFile, byte [] hashValue, Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public int ExecuteAssembly(string assemblyFile, string[] args, byte[] hashValue, Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm)
 {
     // This api is only meaningful for very specific partial trust/CAS hence not supporting
     throw new PlatformNotSupportedException();
 }
Ejemplo n.º 5
0
        public int ExecuteAssembly(string assemblyFile, string[] args, byte[] hashValue, Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm)
        {
            if (assemblyFile == null)
            {
                throw new ArgumentNullException(nameof(assemblyFile));
            }

            /* TODO Assembly.LoadFrom is not implemented yet
             * Assembly assembly = Assembly.LoadFrom(path, hashValue, hashAlgorithm);
             * return ExecuteAssembly(assembly, args);
             */
            return(0);
        }