Skip to content

Commit bcb0a32

Browse files
committed
naming change on di
1 parent b834330 commit bcb0a32

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Integrating FluentMinimalApiMapper into your project is straightforward. Below a
3333
```csharp
3434
var builder = WebApplication.CreateBuilder(args);
3535
// Single project with one assembly
36-
builder.AddEndpoints();
36+
builder.AddMinimalApis();
3737
var app = builder.Build();
3838
app.MapEndpoints();
3939
app.Run();
@@ -44,7 +44,7 @@ var builder = WebApplication.CreateBuilder(args);
4444
// Multiple projects with multiple assemblies (e.g., modular monolithic)
4545
builder.AddEndpoints([typeof(Startup).Assembly, typeof(OtherAssembly).Assembly]);
4646
var app = builder.Build();
47-
app.MapEndpoints();
47+
app.MapMinimalApis();
4848
app.Run();
4949
```
5050

src/FluentMinimalApiMapper/AddEndpointExtension.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace FluentMinimalApiMapper;
77

88
public static class AddEndpointExtension
99
{
10-
public static WebApplicationBuilder AddEndpoints(this WebApplicationBuilder builder,
10+
public static WebApplicationBuilder AddMinimalApis(this WebApplicationBuilder builder,
1111
IEnumerable<Assembly> assemblies)
1212
{
1313
var serviceDescriptors = new List<ServiceDescriptor>();
@@ -29,7 +29,7 @@ public static WebApplicationBuilder AddEndpoints(this WebApplicationBuilder buil
2929
return builder;
3030
}
3131

32-
public static WebApplicationBuilder AddEndpoints(this WebApplicationBuilder builder)
32+
public static WebApplicationBuilder AddMinimalApis(this WebApplicationBuilder builder)
3333
{
3434
var entryAssembly = Assembly.GetEntryAssembly();
3535

@@ -38,6 +38,6 @@ public static WebApplicationBuilder AddEndpoints(this WebApplicationBuilder buil
3838
throw new InvalidOperationException("Entry assembly not found.");
3939
}
4040

41-
return builder.AddEndpoints([entryAssembly]);
41+
return builder.AddMinimalApis([entryAssembly]);
4242
}
4343
}

src/FluentMinimalApiMapper/FluentMinimalApiMapper.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>2.0.0</Version>
11+
<Version>2.0.1</Version>
1212
<PackageId>Pandatech.FluentMinimalApiMapper</PackageId>
1313
<Title>FluentMinimalApiMapper: Effortless Endpoint Integration</Title>
1414
<PackageTags>Pandatech, library, MinimalAPI, AutoMapping, FluentAPI, EndpointRegistration</PackageTags>
1515
<Description>FluentMinimalApiMapper redefines the simplicity of minimal API development, offering an intuitive and automated approach to endpoint mapping. With a focus on streamlined integration, this NuGet package by PandaTech is the perfect tool for developers looking to enhance the efficiency and readability of their modular applications. Dive into the seamless world of API development with FluentMinimalApiMapper, where every route is a journey simplified.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-fluent-minimal-api-mapper</RepositoryUrl>
17-
<PackageReleaseNotes>.Net 9 upgrade</PackageReleaseNotes>
17+
<PackageReleaseNotes>Breaking change on dependency injection names. Check out readme for new names</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

src/FluentMinimalApiMapper/MapEndpointExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace FluentMinimalApiMapper;
66

77
public static class MapEndpointExtension
88
{
9-
public static WebApplication MapEndpoints(this WebApplication app, RouteGroupBuilder? routeGroupBuilder = null)
9+
public static WebApplication MapMinimalApis(this WebApplication app, RouteGroupBuilder? routeGroupBuilder = null)
1010
{
1111
var endpoints = app.Services
1212
.GetRequiredService<IEnumerable<IEndpoint>>();

0 commit comments

Comments
 (0)