Skip to content

Commit

Permalink
Merge pull request #17 from alistairjevans/develop
Browse files Browse the repository at this point in the history
Autofac v5 Upgrade
  • Loading branch information
tillig authored Jan 30, 2020
2 parents fc67aca + 25006c1 commit 457b5ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 5.0.0.{build}

configuration: Release

os: Visual Studio 2017
os: Visual Studio 2019

environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.2.101"
"version": "3.1.100"
}
}
4 changes: 2 additions & 2 deletions src/Autofac.Integration.Mef/Autofac.Integration.Mef.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Autofac" Version="5.0.0-develop-00634" />
<PackageReference Include="Autofac" Version="5.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="2.9.4">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
Expand Down Expand Up @@ -97,4 +97,4 @@
</AssemblyAttribute>
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions src/Autofac.Integration.Mef/RegistrationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationSt

var configuration = new ExportConfigurationBuilder();
configurationAction(configuration);
registration.OnRegistered(e => AttachExport(e.ComponentRegistry, e.ComponentRegistration, configuration));
registration.OnRegistered(e => AttachExport(e.ComponentRegistryBuilder, e.ComponentRegistration, configuration));

return registration;
}
Expand Down Expand Up @@ -236,7 +236,7 @@ public static IEnumerable<Export> ResolveExports<T>(this IComponentContext conte
}

[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "The component registry is responsible for disposal of contained registrations.")]
private static void AttachExport(IComponentRegistry registry, IComponentRegistration registration, ExportConfigurationBuilder exportConfiguration)
private static void AttachExport(IComponentRegistryBuilder registry, IComponentRegistration registration, ExportConfigurationBuilder exportConfiguration)
{
var contractService = new ContractBasedService(exportConfiguration.ContractName, exportConfiguration.ExportTypeIdentity);

Expand Down

0 comments on commit 457b5ec

Please sign in to comment.