src/Orleans.TestingHost/TestClusterExtensions.cs
/// <summary>
/// Gets the configuration from the specified host builder.
/// </summary>        
/// <param name="builder">
/// The builder.
/// </param>
Gets the configuration from the specified host builder.
Gets the configuration from the specified host builder .
public static IConfiguration GetConfiguration(this IHostBuilder builder)
        {
            if (builder.Properties.TryGetValue("Configuration", out var configObject) && configObject is IConfiguration config)
            {
                return config;
            }
            throw new InvalidOperationException(
                $"Expected configuration object in \"Configuration\" property of type {nameof(IConfiguration)} on {nameof(ISiloBuilder)}.");
        }
public static IConfiguration GetConfiguration ( this IHostBuilder builder ) { if ( builder . Properties . TryGetValue ( " " , out var configObject ) && configObject is IConfiguration config ) { return config ; } throw new InvalidOperationException ( $" Expected configuration object in  \" Configuration \"  property of type  { nameof ( IConfiguration ) }  on  { nameof ( ISiloBuilder ) } . " ) ; }
Gets the configuration from the specified host builder.
Gets the configuration from the specified host builder .
IHostBuilder
this
builder
None