Zaria.AI.AspNetCore
1.1.0
dotnet add package Zaria.AI.AspNetCore --version 1.1.0
NuGet\Install-Package Zaria.AI.AspNetCore -Version 1.1.0
<PackageReference Include="Zaria.AI.AspNetCore" Version="1.1.0" />
<PackageVersion Include="Zaria.AI.AspNetCore" Version="1.1.0" />
<PackageReference Include="Zaria.AI.AspNetCore" />
paket add Zaria.AI.AspNetCore --version 1.1.0
#r "nuget: Zaria.AI.AspNetCore, 1.1.0"
#addin nuget:?package=Zaria.AI.AspNetCore&version=1.1.0
#tool nuget:?package=Zaria.AI.AspNetCore&version=1.1.0
Release 1.0.0 Notes
The package provides built-in support for using Zaria.AI in AspNetCore web applications. Added helper funcitons to IApplicationBuilder and IServiceCollection. With these, Zaria.AI can be used in WebApi applications in the same manner as console. To leverage Zaria.AI add the following calls during application statup.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddZaria();
//other boilerplate web api stuff would go here
app.UseZaria();
app.Run();
The UseZaria method can optionally accept a string representing the root path that will trigger Zaria functionality (by default this is /zaria). So zaria would be triggered for
http://some host/zaria/echo "hello world"
which would show in the address bar as:
http://some host/zaria/echo%20"hello%20world"
If app.UseZaria("sampler")
is used then the correct url to trigger it would be:
http://some host/sampler/echo "hello world"
AddZaria can optionally accept a delegate that allows you to configure the processor as needed. The following sample illustrtes loading remote patterns into the processor.
// Add services to the container.
builder.Services.AddZaria(processor =>
{
processor.ScanReferencedAssembly<MyAssemblyIdentifier>();
processor.LoadRemotePatternRepository("""
{
"Patterns": [
{
"Pattern": "you dey craze1",
"HandlerURI": "http://localhost:5227/zaria/echo 888",
"Method": "get"
},
{
"Pattern": "you dey mad2",
"HandlerURI": "http://localhost:5227/zaria/echo 999",
"Method": "get"
}
]
}
""");
});
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Azure.Functions.Worker (>= 1.22.0)
- Zaria.AI (>= 1.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|