Compare commits
3
Commits
0bc45bd8b9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1cc28edc6 | ||
|
|
be08a4d287 | ||
|
|
98f6af7ce5 |
@@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
bin/*
|
bin/*
|
||||||
obj/*
|
obj/*
|
||||||
|
Logs
|
||||||
|
|
||||||
#
|
#
|
||||||
Db/*
|
Db/*
|
||||||
|
|||||||
+5
-1
@@ -1,4 +1,5 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
|
using xLoggingService.DI;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
@@ -19,10 +20,13 @@ namespace xAiMcpServer
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
var result = Host.CreateDefaultBuilder(args)
|
var result = Host.CreateDefaultBuilder(args)
|
||||||
|
.ConfigureLogging(logging =>
|
||||||
|
logging.AddXTelemetryLogger())
|
||||||
.ConfigureWebHostDefaults(webBuilder =>
|
.ConfigureWebHostDefaults(webBuilder =>
|
||||||
{
|
{
|
||||||
webBuilder.UseStartup<Startup>();
|
webBuilder.UseStartup<Startup>();
|
||||||
});
|
})
|
||||||
|
.AddXTelemetry();
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"launchUrl": "weatherforecast",
|
"launchUrl": "weatherforecast",
|
||||||
"applicationUrl": "https://localhost:7001;http://localhost:7000",
|
"applicationUrl": "https://localhost:7001;http://localhost:7000;https://0.0.0.0:7001;",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,6 +140,13 @@ namespace xAiMcpServer
|
|||||||
// Using Routing ...
|
// Using Routing ...
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Using Request Logging ...
|
||||||
|
if (!isDevelopmentEnvironment)
|
||||||
|
{
|
||||||
|
app.UseXRequestLogger();
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Use xIdentityService (Authentication) ...
|
// Use xIdentityService (Authentication) ...
|
||||||
app.UseXIdentityService();
|
app.UseXIdentityService();
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"DefaultLanguage": "fa-IR",
|
"DefaultLanguage": "fa-IR",
|
||||||
"XPoweredValue": "SaherElmITCenter",
|
"XPoweredValue": "SaherElmITCenter",
|
||||||
"WelcomeMessage": "Welcome to xSaherElm Project's AI Mcp Server",
|
"WelcomeMessage": "Welcome to xSaherElm Project's AI Mcp Server",
|
||||||
|
"DefaultCacheTtlMinutes": 10,
|
||||||
"SwaggerConfiguration": {
|
"SwaggerConfiguration": {
|
||||||
"Version": "v1.0",
|
"Version": "v1.0",
|
||||||
"Title": "xSaherElm AI Mcp Server",
|
"Title": "xSaherElm AI Mcp Server",
|
||||||
|
|||||||
Reference in New Issue
Block a user