public void InstallClrAssembly(string clrAssemblyPath, permissionSetType permissionSet) { var clrAssembly = Assembly.LoadFile(clrAssemblyPath); InstallClrAssembly(clrAssembly, permissionSet); Console.WriteLine($"Assembly {_assemblyName} installed!"); }
public void InstallClrAssemblyDirectory(string clrAssemblyDirectory, permissionSetType permissionSet) { foreach (var file in Directory.GetFiles(clrAssemblyDirectory, "*.dll")) { InstallClrAssembly(file, permissionSet); } }
public void InstallClrAssembly(Assembly clrAssembly, permissionSetType permissionSet) { _clrAssembly = clrAssembly; _assemblyName = _clrAssembly.GetName().Name.Replace(".", ""); _permissionSet = permissionSet; DropAssemblyFunctions(); DropAssembly(); CreateAssembly(); CreateAssemblyFunctions(); }