ApplicationPartManagerCodeGenExtensions.WithCodeGeneration 方法

定义

为提供的程序集生成支持代码,并将其添加到生成器。

public static Orleans.ApplicationParts.IApplicationPartManagerWithAssemblies WithCodeGeneration (this Orleans.ApplicationParts.IApplicationPartManagerWithAssemblies manager, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory = default);
static member WithCodeGeneration : Orleans.ApplicationParts.IApplicationPartManagerWithAssemblies * Microsoft.Extensions.Logging.ILoggerFactory -> Orleans.ApplicationParts.IApplicationPartManagerWithAssemblies
<Extension()>
Public Function WithCodeGeneration (manager As IApplicationPartManagerWithAssemblies, Optional loggerFactory As ILoggerFactory = Nothing) As IApplicationPartManagerWithAssemblies

参数

loggerFactory
ILoggerFactory

可选的记录器工厂,用于输出代码生成诊断。

返回

添加了支持部件的生成器。

适用于