Mark samples as AOT compatible (#184)
* Revert changes to remove APIs * Apply suggestions from code review Co-authored-by: Stephen Toub <stoub@microsoft.com> --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
c452dc8e26
commit
f652b1a03d
1 changed files with 51 additions and 10 deletions
|
|
@ -1,13 +1,14 @@
|
|||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using QuickstartWeatherServer.Tools;
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
|
||||
builder.Services.AddMcpServer()
|
||||
.WithStdioServerTransport()
|
||||
.WithToolsFromAssembly();
|
||||
.WithTools<WeatherTools>();
|
||||
|
||||
builder.Logging.AddConsole(options =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue