Skip to content

Commit 2c0434c

Browse files
author
Sergei Calabonga
committed
IServiceCollection was removed
IServiceCollection was removed. Just use WebApplicationBuilder.Services please. Assembly name added for debug information at startup.
1 parent 955ad88 commit 2c0434c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Calabonga.AspNetCore.AppDefinitions/AppDefinitionCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ internal void AddInfo(AppDefinitionItem definition)
2828
/// Information about <see cref="IAppDefinition"/>
2929
/// </summary>
3030
/// <param name="Definition"></param>
31-
public sealed record AppDefinitionItem(IAppDefinition Definition);
31+
public sealed record AppDefinitionItem(IAppDefinition Definition, string AssemblyName);

src/Calabonga.AspNetCore.AppDefinitions/AppDefinitionExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void AddDefinitions(this WebApplicationBuilder builder, params Typ
3131

3232
foreach (var definition in instances)
3333
{
34-
info.AddInfo(new AppDefinitionItem(definition));
34+
info.AddInfo(new AppDefinitionItem(definition, entryPoint.Name));
3535
}
3636

3737
var instancesOrdered = instances.Where(x => x.Enabled).OrderBy(x => x.OrderIndex).ToList();
@@ -42,14 +42,14 @@ public static void AddDefinitions(this WebApplicationBuilder builder, params Typ
4242
{
4343
definition.ConfigureServices(builder);
4444
}
45+
4546
if (logger.IsEnabled(LogLevel.Debug))
4647
{
4748
logger.LogDebug("[AppDefinitions]: From {@items}", string.Join(", ", info.EntryPoints));
4849

49-
5050
foreach (var item in info.Items.OrderBy(x => x.Definition.GetType().Name))
5151
{
52-
logger.LogDebug("[AppDefinitions]: {@AppDefinitionName} (Enabled: {@Enabled})", item.Definition.GetType().Name, item.Definition.Enabled ? "Yes" : "No");
52+
logger.LogDebug("[AppDefinitions]: {@AppDefinitionName} ({@AssemblyName}) (Enabled: {@Enabled})", item.Definition.GetType().Name, item.AssemblyName, item.Definition.Enabled ? "Yes" : "No");
5353
}
5454
}
5555

src/Calabonga.AspNetCore.AppDefinitions/Calabonga.AspNetCore.AppDefinitions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
88
<Title>Calabonga.AspNetCore.AppDefinitions</Title>
9-
<Version>2.0.0-beta1</Version>
9+
<Version>2.0.0</Version>
1010
<Authors>Calabonga</Authors>
1111
<Company>Calabonga Soft</Company>
1212
<Product>Calabonga.AspNetCore.AppDefinitions</Product>
@@ -18,7 +18,7 @@
1818
<RepositoryUrl>https://github.com/Calabonga/Calabonga.AspNetCore.AppDefinitions</RepositoryUrl>
1919
<RepositoryType>git</RepositoryType>
2020
<PackageTags>calabonga;architecture;definitions;minimal-api;nimble-framework</PackageTags>
21-
<PackageReleaseNotes>IServiceCollection was removed. Just use WebApplicationBuilder.Services please.</PackageReleaseNotes>
21+
<PackageReleaseNotes>IServiceCollection was removed. Just use WebApplicationBuilder.Services please. Assembly name added for debug information at startup.</PackageReleaseNotes>
2222
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2323
</PropertyGroup>
2424

0 commit comments

Comments
 (0)