Skip to content

Commit d12450a

Browse files
committed
SimpleInjectorAddOptions exposed from SimpleInjectorAspNetCoreBuilder. Fixes #11
1 parent aa551b1 commit d12450a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/SimpleInjector.Integration.AspNetCore/SimpleInjectorAspNetCoreBuilder.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,24 @@ namespace SimpleInjector.Integration.AspNetCore
1313
/// </summary>
1414
public sealed class SimpleInjectorAspNetCoreBuilder
1515
{
16-
private readonly SimpleInjectorAddOptions options;
17-
1816
internal SimpleInjectorAspNetCoreBuilder(SimpleInjectorAddOptions options)
1917
{
20-
this.options = options;
18+
this.Options = options;
2119
}
2220

21+
/// <summary>The options.</summary>
22+
public SimpleInjectorAddOptions Options { get; }
23+
2324
/// <summary>
2425
/// Gets the <see cref="IServiceCollection"/> that contains the collection of framework components.
2526
/// </summary>
2627
/// <value>The <see cref="IServiceCollection"/> instance.</value>
27-
public IServiceCollection Services => this.options.Services;
28+
public IServiceCollection Services => this.Options.Services;
2829

2930
/// <summary>
3031
/// Gets the <see cref="Container"/> instance used by the application.
3132
/// </summary>
3233
/// <value>The <see cref="Container"/> instance.</value>
33-
public Container Container => this.options.Container;
34+
public Container Container => this.Options.Container;
3435
}
3536
}

0 commit comments

Comments
 (0)