Skip to content

Commit

Permalink
Merge pull request #7 from TheNegumProject/cleaning
Browse files Browse the repository at this point in the history
!cleaning;
  • Loading branch information
Sejoslaw committed Dec 16, 2022
2 parents cde8ba0 + b0c0fc6 commit 2a01dbe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Negum.Core/Containers/NegumContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ public static void Register<TInterface, TClass>(NegumObjectLifetime lifetime = N
public static TInterface Resolve<TInterface>() =>
(TInterface) Resolver(typeof(TInterface));

/// <summary>
/// Registers known types to container.
///
/// REMEMBER:
/// Call it at least once before using the engine.
/// </summary>
static NegumContainer()
{
// Configurations
Expand All @@ -86,7 +80,7 @@ static NegumContainer()
// Readers
RegisterInterfaceClassPairs(typeof(IReader<,>).Namespace, typeof(IReader<,>));

// Negum Manager Section Entries
// Manager Section Entries
RegisterMultiple(typeof(StringEntry).Namespace, typeof(IManagerSectionEntry<>),
(type, baseType) =>
type.GetInterfaces().FirstOrDefault(i => i.GetGenericTypeDefinition() == baseType));
Expand Down

0 comments on commit 2a01dbe

Please sign in to comment.