Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Nov 6, 2024
1 parent 0e50cd4 commit a07c730
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions samples/ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.Hosting;
using DryIoc;
using DryIoc.Microsoft.DependencyInjection;
using static System.Console;

HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.Services.AddTransient<TransientDisposable>();
Expand All @@ -29,7 +28,6 @@
// Resolve the actual DryIoc.IContainer from the services.
var container = host.Services.GetRequiredService<IContainer>();
var serviceProvider = container.Resolve<IServiceProvider>();

Console.WriteLine($"The actual container is {container.GetType().FullName}, and the service provider is {serviceProvider.GetType().FullName}");

ExemplifyDisposableScoping(host.Services, "Scope 1");
Expand Down

0 comments on commit a07c730

Please sign in to comment.