-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IOC hints needs to contain full type name.
- Loading branch information
Showing
6 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lasses#TestNamespace.Logger.g.verified.cs → ...s#TestNamespace.Logger[int].g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...rCouldBeUsedForGenericClassesWithMultipleVariants#TestNamespace.Logger[int].g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//HintName: TestNamespace.Logger[int].g.cs | ||
// <auto-generated/> | ||
#pragma warning disable 612,618 | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace TestNamespace; | ||
|
||
static file class LoggerRegistration | ||
{ | ||
[ModuleInitializer] | ||
internal static unsafe void Register4BTDB() | ||
{ | ||
global::BTDB.IOC.IContainer.RegisterFactory(typeof(global::TestNamespace.Logger<int>), (container, ctx) => | ||
{ | ||
var f0 = container.CreateFactory(ctx, typeof(int), "a"); | ||
if (f0 == null) throw new global::System.ArgumentException("Cannot resolve int a parameter of TestNamespace.Logger<int>"); | ||
return (container2, ctx2) => | ||
{ | ||
var res = new global::TestNamespace.Logger<int>((int)(f0(container2, ctx2))); | ||
return res; | ||
}; | ||
}); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...uldBeUsedForGenericClassesWithMultipleVariants#TestNamespace.Logger[string].g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//HintName: TestNamespace.Logger[string].g.cs | ||
// <auto-generated/> | ||
#pragma warning disable 612,618 | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace TestNamespace; | ||
|
||
static file class LoggerRegistration | ||
{ | ||
[ModuleInitializer] | ||
internal static unsafe void Register4BTDB() | ||
{ | ||
global::BTDB.IOC.IContainer.RegisterFactory(typeof(global::TestNamespace.Logger<string>), (container, ctx) => | ||
{ | ||
var f0 = container.CreateFactory(ctx, typeof(string), "a"); | ||
if (f0 == null) throw new global::System.ArgumentException("Cannot resolve string a parameter of TestNamespace.Logger<string>"); | ||
return (container2, ctx2) => | ||
{ | ||
var res = new global::TestNamespace.Logger<string>(Unsafe.As<string>(f0(container2, ctx2))); | ||
return res; | ||
}; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters