gdhgsjgh
This commit is contained in:
parent
2a3c61c3f3
commit
6aa594025d
|
|
@ -0,0 +1,5 @@
|
||||||
|
aycode.core rebuild product mode
|
||||||
|
copy: \AyCode.Core\AyCode.Services.Server\bin\Product\net8.0 to \AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0
|
||||||
|
Setting.cs baseurl
|
||||||
|
megnézni a Loglevelt és ha olyan, átállítani TiamConstClient.DefaultLogLevelClient
|
||||||
|
database connection, server side loglevel string átírni tiamwebappserver\appsettings.json
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using AyCode.Core.Consts;
|
using AyCode.Core.Consts;
|
||||||
|
using AyCode.Core.Loggers;
|
||||||
|
|
||||||
namespace TIAM.Core.Consts;
|
namespace TIAM.Core.Consts;
|
||||||
|
|
||||||
|
|
@ -12,6 +13,11 @@ public static class TiamConstClient
|
||||||
Guid.Parse("4cbaed43-2465-4d99-84f1-c8bc6b7025f7"),
|
Guid.Parse("4cbaed43-2465-4d99-84f1-c8bc6b7025f7"),
|
||||||
Guid.Parse("540271f6-c604-4c16-8160-d5a7cafedf00")
|
Guid.Parse("540271f6-c604-4c16-8160-d5a7cafedf00")
|
||||||
};
|
};
|
||||||
|
#if RELEASE
|
||||||
|
public static LogLevel DefaultLogLevelClient = LogLevel.Debug;
|
||||||
|
#else
|
||||||
|
public static LogLevel DefaultLogLevelClient = LogLevel.Detail;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TiamConst : AcConst
|
public class TiamConst : AcConst
|
||||||
|
|
|
||||||
|
|
@ -147,16 +147,16 @@ builder.WebHost.ConfigureKestrel((context, options) =>
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddResponseCompression(options =>
|
//builder.Services.AddResponseCompression(options =>
|
||||||
{
|
//{
|
||||||
options.EnableForHttps = true;
|
// options.EnableForHttps = true;
|
||||||
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "application/octet-stream" });
|
// options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "application/octet-stream" });
|
||||||
options.Providers.Add<BrotliCompressionProvider>();
|
// options.Providers.Add<BrotliCompressionProvider>();
|
||||||
options.Providers.Add<GzipCompressionProvider>();
|
// options.Providers.Add<GzipCompressionProvider>();
|
||||||
});
|
//});
|
||||||
|
|
||||||
builder.Services.Configure<BrotliCompressionProviderOptions>(options => options.Level = CompressionLevel.Optimal);
|
//builder.Services.Configure<BrotliCompressionProviderOptions>(options => options.Level = CompressionLevel.Optimal);
|
||||||
builder.Services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Optimal);
|
//builder.Services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Optimal);
|
||||||
|
|
||||||
//builder.Services.AddSingleton(sp => (sp.GetRequiredService<IHostEnvironment>() as IWebHostEnvironment)!);
|
//builder.Services.AddSingleton(sp => (sp.GetRequiredService<IHostEnvironment>() as IWebHostEnvironment)!);
|
||||||
|
|
||||||
|
|
@ -173,10 +173,10 @@ else
|
||||||
app.UseHsts();
|
app.UseHsts();
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (!app.Environment.IsDevelopment())
|
////if (!app.Environment.IsDevelopment())
|
||||||
{
|
//{
|
||||||
app.UseResponseCompression();
|
// app.UseResponseCompression();
|
||||||
}
|
//}
|
||||||
|
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(c =>
|
app.UseSwaggerUI(c =>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||||
|
-->
|
||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<DeleteExistingFiles>true</DeleteExistingFiles>
|
||||||
|
<ExcludeApp_Data>false</ExcludeApp_Data>
|
||||||
|
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
||||||
|
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||||
|
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||||
|
<PublishProvider>FileSystem</PublishProvider>
|
||||||
|
<PublishUrl>C:\REPOS\AYCODE\Publish\ServerRelease</PublishUrl>
|
||||||
|
<WebPublishMethod>FileSystem</WebPublishMethod>
|
||||||
|
<_TargetId>Folder</_TargetId>
|
||||||
|
<SiteUrlToLaunchAfterPublish />
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ProjectGuid>9d0f60cb-0462-4bdb-91bd-cadb574ab5a5</ProjectGuid>
|
||||||
|
<SelfContained>false</SelfContained>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ActiveDebugProfile>https</ActiveDebugProfile>
|
<ActiveDebugProfile>https</ActiveDebugProfile>
|
||||||
<NameOfLastUsedPublishProfile>C:\REPOS\AYCODE\source\TourIAm\TIAMWebApp\Server\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile>
|
<NameOfLastUsedPublishProfile>C:\REPOS\AYCODE\source\TourIAm\TIAMWebApp\Server\Properties\PublishProfiles\ReleaseDeployProfile.pubxml</NameOfLastUsedPublishProfile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
|
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,17 @@
|
||||||
public class Setting
|
public class Setting
|
||||||
{
|
{
|
||||||
public static UserBasicDetails UserBasicDetails { get; set; }
|
public static UserBasicDetails UserBasicDetails { get; set; }
|
||||||
public const string BaseUrl = "https://localhost:7116";
|
|
||||||
public const string ApiBaseUrl = "https://localhost:7116";
|
|
||||||
//public const string BaseUrl = "https://touriam.mangoweb.hu";
|
//public const string BaseUrl = "https://touriam.mangoweb.hu";
|
||||||
//public const string ApiBaseUrl = "https://touriam.mangoweb.hu";
|
//public const string ApiBaseUrl = "https://touriam.mangoweb.hu";
|
||||||
//public const string BaseUrl = "https://test.touriam.com";
|
#if RELEASE
|
||||||
//public const string ApiBaseUrl = "https://test.touriam.com";
|
public const string BaseUrl = "https://test.touriam.com";
|
||||||
|
public const string ApiBaseUrl = "https://test.touriam.com";
|
||||||
|
//public const string BaseUrl = "https://qa.touriam.com";
|
||||||
|
//public const string ApiBaseUrl = "https://qa.touriam.com";
|
||||||
|
#else
|
||||||
|
public const string BaseUrl = "https://localhost:7116";
|
||||||
|
public const string ApiBaseUrl = "https://localhost:7116";
|
||||||
|
#endif
|
||||||
public const bool DarkMode = false;
|
public const bool DarkMode = false;
|
||||||
public static string Locale { get; set; }
|
public static string Locale { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
using AyCode.Core.Enums;
|
using AyCode.Core.Enums;
|
||||||
using AyCode.Core.Loggers;
|
using AyCode.Core.Loggers;
|
||||||
using AyCode.Services.Loggers;
|
using AyCode.Services.Loggers;
|
||||||
|
using TIAM.Core.Consts;
|
||||||
using TIAM.Core.Loggers;
|
using TIAM.Core.Loggers;
|
||||||
|
|
||||||
namespace TIAMWebApp.Shared.Application.Utility;
|
namespace TIAMWebApp.Shared.Application.Utility;
|
||||||
|
|
@ -11,10 +12,10 @@ public class LoggerClient : Logger, ILogger
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public LoggerClient(string? categoryName) : base(AppType.Web, LogLevel.Detail, categoryName)
|
public LoggerClient(string? categoryName) : base(AppType.Web, TiamConstClient.DefaultLogLevelClient, categoryName)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public LoggerClient(string? categoryName, params IAcLogWriterBase[] logWriters) : base(AppType.Web, LogLevel.Detail, categoryName, logWriters)
|
public LoggerClient(string? categoryName, params IAcLogWriterBase[] logWriters) : base(AppType.Web, TiamConstClient.DefaultLogLevelClient, categoryName, logWriters)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public LoggerClient(AppType appType, LogLevel logLevel, string? categoryName, params IAcLogWriterBase[] logWriters) : base(appType, logLevel, categoryName, logWriters)
|
public LoggerClient(AppType appType, LogLevel logLevel, string? categoryName, params IAcLogWriterBase[] logWriters) : base(appType, logLevel, categoryName, logWriters)
|
||||||
|
|
@ -23,10 +24,10 @@ public class LoggerClient : Logger, ILogger
|
||||||
|
|
||||||
public class LoggerClient<TCategory> : LoggerClient, ILogger<TCategory>
|
public class LoggerClient<TCategory> : LoggerClient, ILogger<TCategory>
|
||||||
{
|
{
|
||||||
public LoggerClient() : base(AppType.Web, LogLevel.Detail, typeof(TCategory).Name)
|
public LoggerClient() : base(AppType.Web, TiamConstClient.DefaultLogLevelClient, typeof(TCategory).Name)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public LoggerClient(params IAcLogWriterClientBase[] logWriters) : base(AppType.Web, LogLevel.Detail, typeof(TCategory).Name, logWriters)
|
public LoggerClient(params IAcLogWriterClientBase[] logWriters) : base(AppType.Web, TiamConstClient.DefaultLogLevelClient, typeof(TCategory).Name, logWriters)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public LoggerClient(AppType appType, LogLevel logLevel, params IAcLogWriterClientBase[] logWriters) : base(appType, logLevel, typeof(TCategory).Name, logWriters)
|
public LoggerClient(AppType appType, LogLevel logLevel, params IAcLogWriterClientBase[] logWriters) : base(appType, logLevel, typeof(TCategory).Name, logWriters)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TIAM.Resources", "TIAMResou
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DD32C7C2-218C-4148-8FD6-1AB3C824A7D5}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DD32C7C2-218C-4148-8FD6-1AB3C824A7D5}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
DeployReadme.txt = DeployReadme.txt
|
||||||
SqlSchemaCompare_Dev_to_DevRelease.scmp = SqlSchemaCompare_Dev_to_DevRelease.scmp
|
SqlSchemaCompare_Dev_to_DevRelease.scmp = SqlSchemaCompare_Dev_to_DevRelease.scmp
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue