AddCommandLine メソッド
| 編集/提案 ソースを表示AddCommandLine(IConfiguration)
ICommandLineServiceをサービスとして実行環境に登録します。 ISettingsSystemServiceより後に登録しなければなりません。
宣言
public static IConfiguration AddCommandLine(this IConfiguration config)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。 |
戻り値
| 型 | 説明 |
|---|---|
| IConfiguration |
|
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |
AddCommandLine(IConfiguration, Func<CommandLineServiceOptions, Task>)
ICommandLineServiceをサービスとして実行環境に登録します。 ISettingsSystemServiceより後に登録しなければなりません。
宣言
public static IConfiguration AddCommandLine(this IConfiguration config, Func<CommandLineServiceOptions, Task> callBackFunc)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。 |
| System.Func<CommandLineServiceOptions, System.Threading.Tasks.Task> | callBackFunc | サービスの設定を行います。 |
戻り値
| 型 | 説明 |
|---|---|
| IConfiguration |
|
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |