Beispiel #1
0
 /// <summary>
 /// Loads and validates the application configuration from a configuration section.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="applicationType">Type of the application.</param>
 /// <param name="systemType">Type of the system.</param>
 /// <returns>Application configuration</returns>
 public static async Task <ApplicationConfiguration> Load(FileInfo file, ApplicationType applicationType, Type systemType)
 {
     return(await ApplicationConfiguration.Load(file, applicationType, systemType, true));
 }
Beispiel #2
0
 /// <summary>
 /// Loads and validates the application configuration from a configuration section.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="applicationType">Type of the application.</param>
 /// <param name="systemType">Type of the system.</param>
 /// <returns>Application configuration</returns>
 public static Task <ApplicationConfiguration> Load(FileInfo file, ApplicationType applicationType, Type systemType) =>
 ApplicationConfiguration.Load(file, applicationType, systemType, true);
 /// <summary>
 /// Loads and validates the application configuration from a configuration section.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="applicationType">Type of the application.</param>
 /// <param name="systemType">Type of the system.</param>
 /// <returns>Application configuration</returns>
 public static ApplicationConfiguration Load(FileInfo file, ApplicationType applicationType, Type systemType)
 {
     return(ApplicationConfiguration.Load(file, applicationType, systemType, true));
 }