SiloBuilderExtensions.ConfigureLogging 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConfigureLogging(ISiloBuilder, Action<HostBuilderContext,ILoggingBuilder>) |
新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。 |
ConfigureLogging(ISiloBuilder, Action<ILoggingBuilder>) |
新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。 |
ConfigureLogging(ISiloBuilder, Action<HostBuilderContext,ILoggingBuilder>)
新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。
public static Orleans.Hosting.ISiloBuilder ConfigureLogging (this Orleans.Hosting.ISiloBuilder builder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Orleans.Hosting.ISiloBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function ConfigureLogging (builder As ISiloBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As ISiloBuilder
參數
- builder
- ISiloBuilder
要設定的 ISiloBuilder。
- configureLogging
- Action<HostBuilderContext,ILoggingBuilder>
設定 ILoggingBuilder 的委派。
適用於
ConfigureLogging(ISiloBuilder, Action<ILoggingBuilder>)
新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。
public static Orleans.Hosting.ISiloBuilder ConfigureLogging (this Orleans.Hosting.ISiloBuilder builder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Orleans.Hosting.ISiloBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function ConfigureLogging (builder As ISiloBuilder, configureLogging As Action(Of ILoggingBuilder)) As ISiloBuilder
參數
- builder
- ISiloBuilder
要設定的 ISiloBuilder。
- configureLogging
- Action<ILoggingBuilder>
設定 ILoggingBuilder 的委派。
傳回
用於鏈結的相同 ISiloBuilder 執行個體。