Skip to content

Commit

Permalink
Merge pull request #439 from paillave/Scheduler
Browse files Browse the repository at this point in the history
IDbContextFactory #438
  • Loading branch information
paillave authored May 19, 2023
2 parents f5d44fc + 03fafff commit 30edee7
Show file tree
Hide file tree
Showing 27 changed files with 368 additions and 234 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Paillave.EntityFrameworkCoreExtension</PackageId>
<Version>2.1.5-beta</Version>
<Version>2.1.6-beta</Version>
<Authors>Stéphane Royer</Authors>
<Company></Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
15 changes: 15 additions & 0 deletions src/Paillave.Etl.Autofac/AutofacDependencyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,20 @@ public bool TryResolve(Type type, out object resolved)
{
return _componentContext.TryResolve(type, out resolved);
}

public object Resolve(Type type, string key)
{
var res = _dependencyResolver.Resolve(type, key);
if (res != null) return res;
res = _componentContext.ResolveKeyed(key, type);
_dependencyResolver.Register(type, res, key);
return res;
}

public bool TryResolve(Type type, string key, out object resolved)
{
resolved = default;
return _componentContext.TryResolveKeyed(key, type, out resolved);
}
}
}
2 changes: 1 addition & 1 deletion src/Paillave.Etl.Autofac/Paillave.Etl.Autofac.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Paillave.EtlNet.Autofac</PackageId>
<Version>2.1.5-beta</Version>
<Version>2.1.6-beta</Version>
<Authors>Stéphane Royer</Authors>
<Company></Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
2 changes: 1 addition & 1 deletion src/Paillave.Etl.Bloomberg/Paillave.Etl.Bloomberg.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Paillave.EtlNet.Bloomberg</PackageId>
<Version>2.1.5-beta</Version>
<Version>2.1.6-beta</Version>
<Authors>Stéphane Royer</Authors>
<Company></Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
2 changes: 1 addition & 1 deletion src/Paillave.Etl.Dropbox/Paillave.Etl.Dropbox.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Paillave.EtlNet.Dropbox</PackageId>
<Version>2.1.5-beta</Version>
<Version>2.1.6-beta</Version>
<Authors>Stéphane Royer</Authors>
<Company></Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Loading

0 comments on commit 30edee7

Please sign in to comment.