diff --git a/TIAM.Database.Test/TIAM.Database.Test.csproj b/TIAM.Database.Test/TIAM.Database.Test.csproj
index 02c95ad9..378568cf 100644
--- a/TIAM.Database.Test/TIAM.Database.Test.csproj
+++ b/TIAM.Database.Test/TIAM.Database.Test.csproj
@@ -22,16 +22,16 @@
-
-
-
-
+
+
+
+
-
+
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/TIAM.Database/TIAM.Database.csproj b/TIAM.Database/TIAM.Database.csproj
index d2d4b0cd..13004f81 100644
--- a/TIAM.Database/TIAM.Database.csproj
+++ b/TIAM.Database/TIAM.Database.csproj
@@ -7,9 +7,9 @@
-
-
-
+
+
+
diff --git a/TIAM.Entities/TIAM.Entities.csproj b/TIAM.Entities/TIAM.Entities.csproj
index afc0a8ca..0d7c9be8 100644
--- a/TIAM.Entities/TIAM.Entities.csproj
+++ b/TIAM.Entities/TIAM.Entities.csproj
@@ -32,7 +32,7 @@
-
+
diff --git a/TIAM.Services.Server.Tests/TIAM.Services.Server.Tests.csproj b/TIAM.Services.Server.Tests/TIAM.Services.Server.Tests.csproj
index 4c7133b3..4f9bbef3 100644
--- a/TIAM.Services.Server.Tests/TIAM.Services.Server.Tests.csproj
+++ b/TIAM.Services.Server.Tests/TIAM.Services.Server.Tests.csproj
@@ -26,10 +26,10 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
+
+
+
+
diff --git a/TIAM.Services.Server/TIAM.Services.Server.csproj b/TIAM.Services.Server/TIAM.Services.Server.csproj
index 3194a785..d8c3cf00 100644
--- a/TIAM.Services.Server/TIAM.Services.Server.csproj
+++ b/TIAM.Services.Server/TIAM.Services.Server.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/TIAMSharedUI/Pages/User/SysAdmins/ManageServiceProviders.razor b/TIAMSharedUI/Pages/User/SysAdmins/ManageServiceProviders.razor
index 03b4af78..1081b90a 100644
--- a/TIAMSharedUI/Pages/User/SysAdmins/ManageServiceProviders.razor
+++ b/TIAMSharedUI/Pages/User/SysAdmins/ManageServiceProviders.razor
@@ -308,13 +308,12 @@
Company resultCompany = null;
if (e.IsNew)
{
- //add new orderData to orderData array
- _logger.Info("New orderData added");
+ _logger.Info("New company adding");
resultCompany = await serviceProviderDataService.CreateServiceProviderAsync((Company)e.EditModel);
}
else
{
- _logger.Info("orderData updated at id " + ((Company)e.EditModel).Id);
+ _logger.Info("company updating at id " + ((Company)e.EditModel).Id);
resultCompany = await serviceProviderDataService.UpdateServiceProviderAsync((Company)e.EditModel);
diff --git a/TIAMSharedUI/TIAMSharedUI.csproj b/TIAMSharedUI/TIAMSharedUI.csproj
index cfab2b04..d6823fb6 100644
--- a/TIAMSharedUI/TIAMSharedUI.csproj
+++ b/TIAMSharedUI/TIAMSharedUI.csproj
@@ -16,8 +16,8 @@
-
-
+
+
diff --git a/TIAMWebApp/Client/TIAMWebApp.Client.csproj b/TIAMWebApp/Client/TIAMWebApp.Client.csproj
index cd9fc6a6..adff4fe3 100644
--- a/TIAMWebApp/Client/TIAMWebApp.Client.csproj
+++ b/TIAMWebApp/Client/TIAMWebApp.Client.csproj
@@ -11,9 +11,9 @@
-
-
-
+
+
+
diff --git a/TIAMWebApp/Server/Program.cs b/TIAMWebApp/Server/Program.cs
index 0ebd8edb..490a9dd9 100644
--- a/TIAMWebApp/Server/Program.cs
+++ b/TIAMWebApp/Server/Program.cs
@@ -148,22 +148,16 @@ builder.WebHost.ConfigureKestrel((context, options) =>
});
});
-//builder.Services.AddResponseCompression(options =>
-//{
-// options.EnableForHttps = true;
-// options.Providers.Add();
-// options.Providers.Add();
-//});
+builder.Services.AddResponseCompression(options =>
+{
+ options.EnableForHttps = true;
+ options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "application/octet-stream" });
+ options.Providers.Add();
+ options.Providers.Add();
+});
-//builder.Services.Configure(options =>
-//{
-// options.Level = CompressionLevel.Optimal;
-//});
-
-//builder.Services.Configure(options =>
-//{
-// options.Level = CompressionLevel.Optimal;
-//});
+builder.Services.Configure(options => options.Level = CompressionLevel.Optimal);
+builder.Services.Configure(options => options.Level = CompressionLevel.Optimal);
var app = builder.Build();
@@ -178,6 +172,11 @@ else
app.UseHsts();
}
+//if (!app.Environment.IsDevelopment())
+{
+ app.UseResponseCompression();
+}
+
app.UseSwagger();
app.UseSwaggerUI(c =>
{
@@ -197,11 +196,6 @@ app.MapRazorPages();
app.MapControllers();
app.MapBlazorHub();
-//if (!app.Environment.IsDevelopment())
-{
- //app.UseResponseCompression();
-}
-
app.MapHub("/TiamChatHub");
app.MapHub("/TiamLoggerHub");
app.MapHub("/DevAdminHub");
diff --git a/TIAMWebApp/Server/TIAMWebApp.Server.csproj b/TIAMWebApp/Server/TIAMWebApp.Server.csproj
index ce459e35..deb71580 100644
--- a/TIAMWebApp/Server/TIAMWebApp.Server.csproj
+++ b/TIAMWebApp/Server/TIAMWebApp.Server.csproj
@@ -11,10 +11,10 @@
-
-
-
-
+
+
+
+
diff --git a/TIAMWebApp/Shared/Services/AcSignalRClientBase.cs b/TIAMWebApp/Shared/Services/AcSignalRClientBase.cs
index e9e19336..4620251b 100644
--- a/TIAMWebApp/Shared/Services/AcSignalRClientBase.cs
+++ b/TIAMWebApp/Shared/Services/AcSignalRClientBase.cs
@@ -41,7 +41,12 @@ namespace TIAMWebApp.Shared.Application.Services
HubConnection = new HubConnectionBuilder()
.WithUrl($"{Setting.BaseUrl}/{hubName}")
- //.AddMessagePackProtocol(options => options.SerializerOptions = MessagePackSerializerOptions.Standard.WithSecurity(MessagePackSecurity.UntrustedData))
+ //.AddMessagePackProtocol(options => {
+ // options.SerializerOptions = MessagePackSerializerOptions.Standard
+ // .WithResolver(MessagePack.Resolvers.StandardResolver.Instance)
+ // .WithSecurity(MessagePackSecurity.UntrustedData)
+ // .WithCompression(MessagePackCompression.Lz4Block)
+ // .WithCompressionMinLength(256);})
.Build();
HubConnection.Closed += HubConnection_Closed;
@@ -131,8 +136,13 @@ namespace TIAMWebApp.Shared.Application.Services
{
if (responseMessage.Status == SignalResponseStatus.Error || responseMessage.ResponseData == null)
{
- Logger.Error($"Client SendMessageToServerAsync response error; await; tag: {messageTag}; Status: {responseMessage.Status}; requestId: {requestId};");
- return default;
+ var errorText = $"Client SendMessageToServerAsync response error; await; tag: {messageTag}; Status: {responseMessage.Status}; requestId: {requestId};";
+
+ Logger.Error(errorText);
+
+ //TODO: Ideiglenes, majd a ResponseMessage-et kell visszaadni a Status miatt! - J.
+ throw new Exception(errorText);
+ //return default;
}
return responseMessage.ResponseData.JsonTo();
diff --git a/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj b/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
index c4958048..dca93f8f 100644
--- a/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
+++ b/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
@@ -23,10 +23,10 @@
-
-
-
-
+
+
+
+