Skip to content
This repository was archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
Updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Sep 7, 2020
1 parent dbc9e0b commit 149167b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<ItemGroup>
<PackageReference Update="Autofac" Version="5.2.0" />
<PackageReference Update="Autofac.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Update="Rocket.Surgery.Conventions" Version="10.0.0-beta.19" />
<PackageReference Update="Rocket.Surgery.Conventions.Abstractions" Version="10.0.0-beta.19" />
<PackageReference Update="Rocket.Surgery.Hosting" Version="10.0.0-beta.19" />
<PackageReference Update="Rocket.Surgery.WebAssembly.Hosting" Version="10.0.0-beta.19" />
<PackageReference Update="Rocket.Surgery.Conventions" Version="10.0.0-beta.20" />
<PackageReference Update="Rocket.Surgery.Conventions.Abstractions" Version="10.0.0-beta.20" />
<PackageReference Update="Rocket.Surgery.Hosting" Version="10.0.0-beta.20" />
<PackageReference Update="Rocket.Surgery.WebAssembly.Hosting" Version="10.0.0-beta.20" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="Bogus" Version="30.0.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public ContainerBuilder CreateBuilder(IServiceCollection services)
var configuration = _conventionContext.Get<IConfiguration>() ?? throw new ArgumentException("Configuration was not found in context");
foreach (var item in _conventionContext.Conventions.Get<IAutofacConvention, AutofacConvention>())
{
if (item.Convention is IAutofacConvention convention)
if (item is IAutofacConvention convention)
{
convention.Register(_conventionContext, configuration, services, _container);
}
else if (item.Delegate is AutofacConvention @delegate)
else if (item is AutofacConvention @delegate)
{
@delegate(_conventionContext, configuration, services, _container);
}
Expand Down
1 change: 0 additions & 1 deletion src/Hosting.Autofac/AutofacRocketHostExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Rocket.Surgery.Conventions;
using Rocket.Surgery.Conventions.Autofac;
using Rocket.Surgery.Conventions.Reflection;
using Rocket.Surgery.Conventions.Scanners;
using Rocket.Surgery.Hosting;

// ReSharper disable once CheckNamespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Rocket.Surgery.Conventions;
using Rocket.Surgery.Conventions.Autofac;
using Rocket.Surgery.Conventions.Reflection;
using Rocket.Surgery.Conventions.Scanners;
using Rocket.Surgery.WebAssembly.Hosting;

// ReSharper disable once CheckNamespace
Expand Down
1 change: 0 additions & 1 deletion test/Autofac.Tests/AutofacBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using Rocket.Surgery.Conventions.CommandLine;
using Rocket.Surgery.Conventions.DependencyInjection;
using Rocket.Surgery.Conventions.Reflection;
using Rocket.Surgery.Conventions.Scanners;
using Rocket.Surgery.Extensions.Autofac.Tests;
using Rocket.Surgery.Extensions.Testing;
using Rocket.Surgery.Hosting;
Expand Down
1 change: 0 additions & 1 deletion test/Autofac.Tests/WebAssemblyAutofacBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using Rocket.Surgery.Conventions.CommandLine;
using Rocket.Surgery.Conventions.DependencyInjection;
using Rocket.Surgery.Conventions.Reflection;
using Rocket.Surgery.Conventions.Scanners;
using Rocket.Surgery.Extensions.Autofac.Tests;
using Rocket.Surgery.Extensions.Testing;
using Rocket.Surgery.WebAssembly.Hosting;
Expand Down

0 comments on commit 149167b

Please sign in to comment.