Skip to content

Commit 17c21c2

Browse files
authored
update nuget and typo (#41)
* remove non using assembly * add crud example for aot project * update project url * update sample * update typo in nuget
1 parent 77bd2c6 commit 17c21c2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Sharkable.Sample/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using System.Text.Json.Serialization;
21
using Sharkable.Sample;
32
using Microsoft.AspNetCore.Mvc;
43
using Sharkable;
4+
using Microsoft.Extensions.Options;
55

66
var builder = WebApplication.CreateSlimBuilder(args);//.Sharkable([typeof(App).Assembly]);
77

@@ -21,6 +21,9 @@
2121
};
2222
app.AddMongoGroup();
2323
app.UseShark();
24+
25+
var sopt = Shark.Services.GetService<IOptions<SharkOption>>();
26+
Console.WriteLine(sopt?.Value.AotMode);
2427
var todosApi = app.MapGroup("/todos");
2528
todosApi.MapGet("/init", async ([FromServices] IMonitor monitor) =>
2629
{

src/Sharkable/Sharkable.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<description>a dotnet minimal api framework collection aimed to support aot</description>
1414
<releaseNotes>fix endpoint wiring issue</releaseNotes>
1515
<copyright>CopyRight 2024 Penglei</copyright>
16-
<tags>minialapi aot framework toolkit</tags>
16+
<tags>minimalapi aot framework toolkit</tags>
1717
<dependencies>
1818
<dependency id="Microsoft.AspNetCore.OpenApi" version="8.0.8" />
1919
<dependency id="Swashbuckle.AspNetCore" version="6.7.3" />

0 commit comments

Comments
 (0)