RoslynCodeGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements a code generator using the Roslyn C# compiler.
public class RoslynCodeGenerator : Orleans.CodeGeneration.ICodeGeneratorCache
public class RoslynCodeGenerator
type RoslynCodeGenerator = class
interface ICodeGeneratorCache
type RoslynCodeGenerator = class
Public Class RoslynCodeGenerator
Implements ICodeGeneratorCache
Public Class RoslynCodeGenerator
- Inheritance
-
RoslynCodeGenerator
- Implements
Constructors
RoslynCodeGenerator(IApplicationPartManager, ILoggerFactory) |
Initializes a new instance of the RoslynCodeGenerator class. |
RoslynCodeGenerator(SerializationManager) |
Initializes a new instance of the RoslynCodeGenerator class. |
Methods
AddGeneratedAssembly(String, GeneratedAssembly) |
Adds a pre-generated assembly. |
GenerateAndLoadForAllAssemblies() |
Generates code for all loaded assemblies and loads the output. |
GenerateAndLoadForAssemblies(Assembly[]) |
Generates and loads code for the specified inputs. |
GenerateAndLoadForAssemblies(IEnumerable<Assembly>) |
Generates, compiles, and loads the |
GenerateAndLoadForAssembly(Assembly) |
Ensures that code generation has been run for the provided assembly. |
GenerateSourceForAssembly(Assembly) |
Generates source code for the provided assembly. |
GetGeneratedAssemblies() |
Returns the collection of generated assemblies as pairs of target assembly name to raw assembly bytes. |