ConfigurationExtensions クラス
IConfigurationの機能を拡張します。 このクラスは静的です。
継承
継承されたメンバー
名前空間: ExapisSOP.Core
アセンブリ: ExapisSOP.dll
構文
public static class ConfigurationExtensions
  メソッド 一覧
| 編集/提案 ソースを表示AddAppWorker<TAppWorker>(IConfiguration)
AppWorkerをサービスとして実行環境に登録します。
宣言
public static IConfiguration AddAppWorker<TAppWorker>(this IConfiguration config)
    where TAppWorker : AppWorker
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
型引数
| 名前 | 説明 | 
|---|---|
| TAppWorker | 引数を必要としないコンストラクタを持つ具体的なAppWorkerの種類です。  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.MissingMemberException | |
| System.ArgumentNullException | 
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 | 
AddFileSystem(IConfiguration)
IFileSystemServiceをサービスとして実行環境に登録します。
宣言
public static IConfiguration AddFileSystem(this IConfiguration config)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddFileSystem(IConfiguration, Func<FileSystemServiceOptions, Task>)
IFileSystemServiceをサービスとして実行環境に登録します。
宣言
public static IConfiguration AddFileSystem(this IConfiguration config, Func<FileSystemServiceOptions, Task> callBackFunc)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
| System.Func<FileSystemServiceOptions, System.Threading.Tasks.Task> | callBackFunc | サービスの設定を行います。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddLoggingSystem(IConfiguration)
ILoggingSystemServiceをサービスとして実行環境に登録します。 ISettingsSystemServiceより後に登録しなければなりません。 また、ICommandLineServiceを登録する場合、 このサービスはその後に登録しなければなりません。
宣言
public static IConfiguration AddLoggingSystem(this IConfiguration config)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddLoggingSystem(IConfiguration, Func<LoggingSystemServiceOptions, Task>)
ILoggingSystemServiceをサービスとして実行環境に登録します。 ISettingsSystemServiceより後に登録しなければなりません。 また、ICommandLineServiceを登録する場合、 このサービスはその後に登録しなければなりません。
宣言
public static IConfiguration AddLoggingSystem(this IConfiguration config, Func<LoggingSystemServiceOptions, Task> callBackFunc)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
| System.Func<LoggingSystemServiceOptions, System.Threading.Tasks.Task> | callBackFunc | サービスの設定を行います。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddSettingsSystem(IConfiguration)
ISettingsSystemServiceをサービスとして実行環境に登録します。 IFileSystemServiceより後に登録しなければなりません。
宣言
public static IConfiguration AddSettingsSystem(this IConfiguration config)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddSettingsSystem(IConfiguration, Func<SettingsSystemServiceOptions, Task>)
ISettingsSystemServiceをサービスとして実行環境に登録します。 IFileSystemServiceより後に登録しなければなりません。
宣言
public static IConfiguration AddSettingsSystem(this IConfiguration config, Func<SettingsSystemServiceOptions, Task> callBackFunc)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
| System.Func<SettingsSystemServiceOptions, System.Threading.Tasks.Task> | callBackFunc | サービスの設定を行います。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.ArgumentNullException | 
AddSystemServices(IConfiguration)
全てのシステムサービスを既定の設定で実行環境に登録します。
宣言
public static IConfiguration AddSystemServices(this IConfiguration config)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  | 
      
AddSystemServices(IConfiguration, Func<FileSystemServiceOptions, Task>, Func<SettingsSystemServiceOptions, Task>, Func<CommandLineServiceOptions, Task>, Func<LoggingSystemServiceOptions, Task>)
全てのシステムサービスを既定の設定で実行環境に登録します。
宣言
public static IConfiguration AddSystemServices(this IConfiguration config, Func<FileSystemServiceOptions, Task> fileSystemOptions = null, Func<SettingsSystemServiceOptions, Task> settingsSystemOptions = null, Func<CommandLineServiceOptions, Task> commandLineOptions = null, Func<LoggingSystemServiceOptions, Task> loggingSystemOptions = null)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| IConfiguration | config | 登録先の構成設定です。  | 
      
| System.Func<FileSystemServiceOptions, System.Threading.Tasks.Task> | fileSystemOptions | IFileSystemServiceの設定を行います。  | 
      
| System.Func<SettingsSystemServiceOptions, System.Threading.Tasks.Task> | settingsSystemOptions | ISettingsSystemServiceの設定を行います。  | 
      
| System.Func<CommandLineServiceOptions, System.Threading.Tasks.Task> | commandLineOptions | ICommandLineServiceの設定を行います。  | 
      
| System.Func<LoggingSystemServiceOptions, System.Threading.Tasks.Task> | loggingSystemOptions | ILoggingSystemServiceの設定を行います。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| IConfiguration | 
  |