shjung 1 سال پیش
والد
کامیت
e16c97ff1e
21فایلهای تغییر یافته به همراه2906 افزوده شده و 27 حذف شده
  1. 1 1
      AipGateway.API.Domain/obj/Debug/net8.0/AipGateway.API.Domain.AssemblyInfo.cs
  2. 1 1
      AipGateway.API.Domain/obj/Debug/net8.0/AipGateway.API.Domain.AssemblyInfoInputs.cache
  3. 2880 0
      AipGateway.API/App_Data/mip_data/mip/logs/mip_sdk.miplog
  4. BIN
      AipGateway.API/App_Data/mip_data/mip/mip.policies.sqlite3
  5. BIN
      AipGateway.API/App_Data/mip_data/mip/telemetry-shm
  6. BIN
      AipGateway.API/App_Data/mip_data/mip/telemetry-wal
  7. 4 4
      AipGateway.API/Controllers/ApiDbController.cs
  8. 7 8
      AipGateway.API/Program.cs
  9. 1 1
      AipGateway.API/Properties/PublishProfiles/FolderProfile1.pubxml.user
  10. 4 4
      AipGateway.API/Services/IApiDbService.cs
  11. 4 4
      AipGateway.API/Services/impl/ApiDbService.cs
  12. BIN
      AipGateway.API/bin/Debug/net8.0/AipGateway.API.pdb
  13. 1 1
      AipGateway.API/obj/Debug/net8.0/AipGateway.API.AssemblyInfo.cs
  14. 1 1
      AipGateway.API/obj/Debug/net8.0/AipGateway.API.AssemblyInfoInputs.cache
  15. BIN
      AipGateway.API/obj/Debug/net8.0/AipGateway.API.pdb
  16. 1 1
      AipGateway.API/obj/Release/net8.0/AipGateway.API.AssemblyInfo.cs
  17. 1 1
      AipGateway.API/obj/Release/net8.0/AipGateway.API.AssemblyInfoInputs.cache
  18. BIN
      AipGateway.API/obj/Release/net8.0/AipGateway.API.pdb
  19. BIN
      AipGateway.API/obj/Release/net8.0/PubTmp/Out/AipGateway.API.pdb
  20. BIN
      AipGateway.Test/obj/Debug/AipGateway.Test.csproj.AssemblyReference.cache
  21. BIN
      AipGateway.Viewer/obj/Debug/AipGateway.Viewer.csproj.AssemblyReference.cache

+ 1 - 1
AipGateway.API.Domain/obj/Debug/net8.0/AipGateway.API.Domain.AssemblyInfo.cs

@@ -14,7 +14,7 @@ using System.Reflection;
 [assembly: System.Reflection.AssemblyCompanyAttribute("AipGateway.API.Domain")]
 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1ba027e4a8c195ff9edc2c16d5ab57c165f18322")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8a56ea7218d1c721e2e87c2bff7e08e737ed351d")]
 [assembly: System.Reflection.AssemblyProductAttribute("AipGateway.API.Domain")]
 [assembly: System.Reflection.AssemblyTitleAttribute("AipGateway.API.Domain")]
 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

+ 1 - 1
AipGateway.API.Domain/obj/Debug/net8.0/AipGateway.API.Domain.AssemblyInfoInputs.cache

@@ -1 +1 @@
-12bfc305f6bdcb838683a16d658227ab05523674ef227bce6f7fa1f074b2ac8b
+a1944d261cefbe13ce3cc9c62b17c6e31495e7dd7bc444ad7840e49dd334c8e1

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2880 - 0
AipGateway.API/App_Data/mip_data/mip/logs/mip_sdk.miplog


BIN
AipGateway.API/App_Data/mip_data/mip/mip.policies.sqlite3


BIN
AipGateway.API/App_Data/mip_data/mip/telemetry-shm


BIN
AipGateway.API/App_Data/mip_data/mip/telemetry-wal


+ 4 - 4
AipGateway.API/Controllers/ApiDbController.cs

@@ -65,7 +65,7 @@ namespace AipGateway.API.Controllers
                 {
                     throw ContainerService.CreateValidationApiAuthorizationAsync(HttpContext, authError);
                 }
-                var response = await _apiDbService.ListRequestLinkedSystems();
+                var response = await _apiDbService.GetLinkedSystems();
                 var result = Results.Ok(new SuccessResponseModel<List<LinkedSystemDto>>()
                 {
                     Message = GlobalConstants.API_RESULT_SUCCESS,
@@ -90,7 +90,7 @@ namespace AipGateway.API.Controllers
                 {
                     throw ContainerService.CreateValidationApiAuthorizationAsync(HttpContext, authError);
                 }
-                var response = await _apiDbService.ListRequestLinkedServers();
+                var response = await _apiDbService.GetLinkedServers();
                 var result = Results.Ok(new SuccessResponseModel<List<LinkedServerDto>>()
                 {
                     Message = GlobalConstants.API_RESULT_SUCCESS,
@@ -115,7 +115,7 @@ namespace AipGateway.API.Controllers
                 {
                     throw ContainerService.CreateValidationApiAuthorizationAsync(HttpContext, authError);
                 }
-                var response = await _apiDbService.ListRequestLinkedApiKeys();
+                var response = await _apiDbService.GetLinkedApiKeys();
                 var result = Results.Ok(new SuccessResponseModel<List<LinkedApiKeyDto>>()
                 {
                     Message = GlobalConstants.API_RESULT_SUCCESS,
@@ -140,7 +140,7 @@ namespace AipGateway.API.Controllers
                 {
                     throw ContainerService.CreateValidationApiAuthorizationAsync(HttpContext, authError);
                 }
-                var response = await _apiDbService.ListRequestLinkedDecryptKeys();
+                var response = await _apiDbService.GetLinkedDecryptKeys();
                 var result = Results.Ok(new SuccessResponseModel<List<LinkedDecryptKeyDto>>()
                 {
                     Message = GlobalConstants.API_RESULT_SUCCESS,

+ 7 - 8
AipGateway.API/Program.cs

@@ -100,7 +100,7 @@ internal class Program
             AipFileApiService? aipFileApiService = ContainerService.provider.GetService<AipFileApiService>();
             if (aipFileApiService == null)
             {
-                Console.WriteLine("Not Found AipFileDbService...");
+                Log.Error("Not Found AipFileApiService...");
                 return;
             }
             aipFileApiService.LoadConfig();
@@ -135,7 +135,7 @@ internal class Program
             ContainerService.aipFileManager = new AipFileManager(aipFileApiService.GetAipSettings().GetConfig());
             if (!AipFileInitialize(ContainerService.aipFileManager))
             {
-                Console.WriteLine("AipFileInitialize: Failed. {0}, {1}", ContainerService.aipFileManager.LastErrNo, ContainerService.aipFileManager.LastErrMsg);
+                Log.Error("AipFileInitialize: Failed. {0}, {1}", ContainerService.aipFileManager.LastErrNo, ContainerService.aipFileManager.LastErrMsg);
                 return;
             }
 
@@ -173,7 +173,7 @@ internal class Program
 
             app.UseHealthChecks("/health");
 
-            if (app.Environment.IsDevelopment())
+            //if (app.Environment.IsDevelopment())
             {
                 app.UseSwagger();
                 app.UseSwaggerUI();
@@ -189,8 +189,7 @@ internal class Program
         catch (Exception ex) when (ex.GetType().Name is not "StopTheHostException"
             && ex.GetType().Name is not "HostAbortedException")
         {
-            Log.Fatal(ex, "Unhandled exception");
-            Console.WriteLine(ex.ToString());
+            Log.Fatal(ex, "Program Unhandled exception");
         }
         finally
         {
@@ -204,17 +203,17 @@ internal class Program
     {
         if (!aipFileManager.Initialize())
         {
-            Console.WriteLine("AipFileInitialize, aipFileManager.Initialize Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
+            Log.Error("AipFileInitialize, aipFileManager.Initialize Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
             return false;
         }
         if (!aipFileManager.CreateProfile())
         {
-            Console.WriteLine("AipFileInitialize, aipFileManager.CreateProfile Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
+            Log.Error("AipFileInitialize, aipFileManager.CreateProfile Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
             return false;
         }
         if (!aipFileManager.CreateEngine())
         {
-            Console.WriteLine("AipFileInitialize, aipFileManager.CreateEngine Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
+            Log.Error("AipFileInitialize, aipFileManager.CreateEngine Failed, {0}, {1}", aipFileManager.LastErrNo, aipFileManager.LastErrMsg);
             return false;
         }
         return true;

+ 1 - 1
AipGateway.API/Properties/PublishProfiles/FolderProfile1.pubxml.user

@@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
 <Project>
   <PropertyGroup>
     <_PublishTargetUrl>C:\DEV\SOLUTION\IIS\AipGateway\AipGateway.API\bin\Release\net8.0\publish\</_PublishTargetUrl>
-    <History>True|2024-05-21T08:45:55.0390682Z;True|2024-05-21T17:44:25.9839621+09:00;</History>
+    <History>True|2024-05-22T05:01:40.6160235Z;True|2024-05-22T13:16:30.5056383+09:00;True|2024-05-22T13:14:04.3820434+09:00;True|2024-05-21T17:45:55.0390682+09:00;True|2024-05-21T17:44:25.9839621+09:00;</History>
     <LastFailureDetails />
   </PropertyGroup>
 </Project>

+ 4 - 4
AipGateway.API/Services/IApiDbService.cs

@@ -8,10 +8,10 @@ namespace AipGateway.API.Services
         Task<ApiResponseDto> ReloadDatabase();
 
         // Base Table Interface
-        Task<List<LinkedSystemDto>> ListRequestLinkedSystems();
-        Task<List<LinkedServerDto>> ListRequestLinkedServers();
-        Task<List<LinkedApiKeyDto>> ListRequestLinkedApiKeys();
-        Task<List<LinkedDecryptKeyDto>> ListRequestLinkedDecryptKeys();
+        Task<List<LinkedSystemDto>> GetLinkedSystems();
+        Task<List<LinkedServerDto>> GetLinkedServers();
+        Task<List<LinkedApiKeyDto>> GetLinkedApiKeys();
+        Task<List<LinkedDecryptKeyDto>> GetLinkedDecryptKeys();
 
     }
 }

+ 4 - 4
AipGateway.API/Services/impl/ApiDbService.cs

@@ -58,7 +58,7 @@ namespace AipGateway.API.Services.impl
             }
         }
 
-        public async Task<List<LinkedSystemDto>> ListRequestLinkedSystems()
+        public async Task<List<LinkedSystemDto>> GetLinkedSystems()
         {
             try
             {
@@ -71,7 +71,7 @@ namespace AipGateway.API.Services.impl
             }
         }
 
-        public async Task<List<LinkedServerDto>> ListRequestLinkedServers()
+        public async Task<List<LinkedServerDto>> GetLinkedServers()
         {
             try
             {
@@ -84,7 +84,7 @@ namespace AipGateway.API.Services.impl
             }
         }
 
-        public async Task<List<LinkedApiKeyDto>> ListRequestLinkedApiKeys()
+        public async Task<List<LinkedApiKeyDto>> GetLinkedApiKeys()
         {
             try
             {
@@ -97,7 +97,7 @@ namespace AipGateway.API.Services.impl
             }
         }
 
-        public async Task<List<LinkedDecryptKeyDto>> ListRequestLinkedDecryptKeys()
+        public async Task<List<LinkedDecryptKeyDto>> GetLinkedDecryptKeys()
         {
             try
             {

BIN
AipGateway.API/bin/Debug/net8.0/AipGateway.API.pdb


+ 1 - 1
AipGateway.API/obj/Debug/net8.0/AipGateway.API.AssemblyInfo.cs

@@ -14,7 +14,7 @@ using System.Reflection;
 [assembly: System.Reflection.AssemblyCompanyAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1ba027e4a8c195ff9edc2c16d5ab57c165f18322")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8a56ea7218d1c721e2e87c2bff7e08e737ed351d")]
 [assembly: System.Reflection.AssemblyProductAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyTitleAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

+ 1 - 1
AipGateway.API/obj/Debug/net8.0/AipGateway.API.AssemblyInfoInputs.cache

@@ -1 +1 @@
-bc278dad3ed6d1a124ad22c7d9f46bc5282267385d26aad33ed35483c84478d1
+77c43fa2ad323dae7c3a6cc4edbb7ddc12ccbb8d54f257e7cf77214487898e94

BIN
AipGateway.API/obj/Debug/net8.0/AipGateway.API.pdb


+ 1 - 1
AipGateway.API/obj/Release/net8.0/AipGateway.API.AssemblyInfo.cs

@@ -14,7 +14,7 @@ using System.Reflection;
 [assembly: System.Reflection.AssemblyCompanyAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1ba027e4a8c195ff9edc2c16d5ab57c165f18322")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8a56ea7218d1c721e2e87c2bff7e08e737ed351d")]
 [assembly: System.Reflection.AssemblyProductAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyTitleAttribute("AipGateway.API")]
 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

+ 1 - 1
AipGateway.API/obj/Release/net8.0/AipGateway.API.AssemblyInfoInputs.cache

@@ -1 +1 @@
-5e077befea85d4cf26dbd0e449c82f26825596ecc24958507c356d47dc8b5587
+03de0e45dc0ffcfa7324a1e7e8a7b063f30f565079ae4592dffd84e037a934e4

BIN
AipGateway.API/obj/Release/net8.0/AipGateway.API.pdb


BIN
AipGateway.API/obj/Release/net8.0/PubTmp/Out/AipGateway.API.pdb


BIN
AipGateway.Test/obj/Debug/AipGateway.Test.csproj.AssemblyReference.cache


BIN
AipGateway.Viewer/obj/Debug/AipGateway.Viewer.csproj.AssemblyReference.cache


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است