共用方式為


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

選擇性記錄器處理站,用於輸出程式碼產生診斷。

傳回

已新增支援元件的建置器。

適用於