Remove SignalR test client and disable Null plugin managers

- Deleted Mango.Sandbox.SignalRTestClient project and all related files from the solution.
- Switched appsettings.json connection string to use FruitBank_DEV.
- Cleaned up project references in Mango.Sandbox.EndPoints and its test project.
- Commented out all Null* plugin manager/service classes in Mango.Sandbox.EndPoints.Services.
This commit is contained in:
Loretta 2025-12-13 12:32:14 +01:00
parent 0dab07d2e8
commit 4e672b4264
17 changed files with 217 additions and 339 deletions

View File

@ -91,8 +91,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.EndPoints", "
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.EndPoints.Tests", "Tests\Mango.Sandbox\Mango.Sandbox.EndPoints.Tests\Mango.Sandbox.EndPoints.Tests.csproj", "{B8491E5C-DBB5-1594-052E-744D78D7A4DE}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.EndPoints.Tests", "Tests\Mango.Sandbox\Mango.Sandbox.EndPoints.Tests\Mango.Sandbox.EndPoints.Tests.csproj", "{B8491E5C-DBB5-1594-052E-744D78D7A4DE}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.SignalRTestClient", "Tests\Mango.Sandbox\Mango.Sandbox.SignalRTestClient\Mango.Sandbox.SignalRTestClient.csproj", "{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -537,18 +535,6 @@ Global
{B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|Mixed Platforms.Build.0 = Release|Any CPU {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.ActiveCfg = Release|Any CPU {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.ActiveCfg = Release|Any CPU
{B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.Build.0 = Release|Any CPU {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.Build.0 = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|x86.ActiveCfg = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|x86.Build.0 = Debug|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Any CPU.Build.0 = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|x86.ActiveCfg = Release|Any CPU
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -594,7 +580,6 @@ Global
{EE44B558-F1DA-433A-BD4C-D275986A4679} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} {EE44B558-F1DA-433A-BD4C-D275986A4679} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{D22DB269-2490-4A3D-B0B4-2CD2BB626F9C} = {E8FC6874-E230-468A-9685-4747354B92FF} {D22DB269-2490-4A3D-B0B4-2CD2BB626F9C} = {E8FC6874-E230-468A-9685-4747354B92FF}
{B8491E5C-DBB5-1594-052E-744D78D7A4DE} = {E8FC6874-E230-468A-9685-4747354B92FF} {B8491E5C-DBB5-1594-052E-744D78D7A4DE} = {E8FC6874-E230-468A-9685-4747354B92FF}
{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F} = {E8FC6874-E230-468A-9685-4747354B92FF}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EE72A8B2-332A-4175-9319-6726D36E9D25} SolutionGuid = {EE72A8B2-332A-4175-9319-6726D36E9D25}

View File

@ -1,6 +1,6 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"ConnectionString": "Data Source=195.26.231.218;Initial Catalog=FruitBank_PROD;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True", "ConnectionString": "Data Source=195.26.231.218;Initial Catalog=FruitBank_DEV;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True",
"DataProvider": "sqlserver", "DataProvider": "sqlserver",
"SQLCommandTimeout": null, "SQLCommandTimeout": null,
"WithNoLock": false "WithNoLock": false

View File

@ -19,62 +19,18 @@
<!-- Projekt referencia a Mango.Sandbox.EndPoints-ra --> <!-- Projekt referencia a Mango.Sandbox.EndPoints-ra -->
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\..\..\NopCommerce.Common\4.70\Libraries\Mango.Nop.Core\Mango.Nop.Core.csproj" />
<ProjectReference Include="..\Mango.Sandbox.EndPoints\Mango.Sandbox.EndPoints.csproj" /> <ProjectReference Include="..\Mango.Sandbox.EndPoints\Mango.Sandbox.EndPoints.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<!-- AyCode DLL-ek a ToJson() <20>s JsonTo<T>() extension met<65>dusokhoz --> <!-- Csak a ténylegesen használt AyCode DLL-ek -->
<Reference Include="AyCode.Core"> <Reference Include="AyCode.Core">
<HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Core.dll</HintPath> <HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Core.dll</HintPath>
</Reference> </Reference>
<Reference Include="AyCode.Core.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Core.Server.dll</HintPath>
</Reference>
<Reference Include="AyCode.Core.Tests">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Core.Tests.dll</HintPath>
</Reference>
<Reference Include="AyCode.Database">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Database.dll</HintPath>
</Reference>
<Reference Include="AyCode.Database.Tests">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Database.Tests.dll</HintPath>
</Reference>
<Reference Include="AyCode.Entities">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Entities.dll</HintPath>
</Reference>
<Reference Include="AyCode.Entities.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Entities.Server.dll</HintPath>
</Reference>
<Reference Include="AyCode.Interfaces">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Interfaces.dll</HintPath>
</Reference>
<Reference Include="AyCode.Interfaces.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Interfaces.Server.dll</HintPath>
</Reference>
<Reference Include="AyCode.Models">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Models.dll</HintPath>
</Reference>
<Reference Include="AyCode.Models.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Models.Server.dll</HintPath>
</Reference>
<Reference Include="AyCode.Services"> <Reference Include="AyCode.Services">
<HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Services.dll</HintPath> <HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Services.dll</HintPath>
</Reference> </Reference>
<Reference Include="AyCode.Services.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Server.dll</HintPath>
</Reference>
<Reference Include="AyCode.Services.Server.Tests">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Server.Tests.dll</HintPath>
</Reference>
<Reference Include="AyCode.Services.Tests">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Tests.dll</HintPath>
</Reference>
<Reference Include="AyCode.Utils">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Utils.dll</HintPath>
</Reference>
<Reference Include="AyCode.Utils.Server">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Utils.Server.dll</HintPath>
</Reference>
<Reference Include="FruitBank.Common"> <Reference Include="FruitBank.Common">
<HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\FruitBank.Common.dll</HintPath> <HintPath>..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\FruitBank.Common.dll</HintPath>
</Reference> </Reference>

View File

@ -84,10 +84,6 @@
<!-- Nop.Web - Admin Model Factories, Controllers, stb. --> <!-- Nop.Web - Admin Model Factories, Controllers, stb. -->
<!-- Nop.Web.Framework - MVC infrastrukt<6B>ra, Themes, stb. --> <!-- Nop.Web.Framework - MVC infrastrukt<6B>ra, Themes, stb. -->
<ProjectReference Include="..\..\..\..\NopCommerce.Common\4.70\Libraries\Mango.Nop.Core\Mango.Nop.Core.csproj" /> <ProjectReference Include="..\..\..\..\NopCommerce.Common\4.70\Libraries\Mango.Nop.Core\Mango.Nop.Core.csproj" />
<ProjectReference Include="..\..\..\..\NopCommerce.Common\4.70\Libraries\Mango.Nop.Data\Mango.Nop.Data.csproj" />
<ProjectReference Include="..\..\..\..\NopCommerce.Common\4.70\Libraries\Mango.Nop.Services\Mango.Nop.Services.csproj" />
<ProjectReference Include="..\..\..\Libraries\Nop.Core\Nop.Core.csproj" />
<ProjectReference Include="..\..\..\Libraries\Nop.Data\Nop.Data.csproj" />
</ItemGroup> </ItemGroup>
<!-- FruitBank Plugin <20>s kapcsol<6F>d<EFBFBD> DLL-ek a PROD build output-b<EFBFBD>l --> <!-- FruitBank Plugin <20>s kapcsol<6F>d<EFBFBD> DLL-ek a PROD build output-b<EFBFBD>l -->

View File

@ -1,30 +1,30 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Authentication.External; //using Nop.Services.Authentication.External;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullAuthenticationPluginManager : IAuthenticationPluginManager //public class NullAuthenticationPluginManager : IAuthenticationPluginManager
{ //{
public Task<IExternalAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IExternalAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IExternalAuthenticationMethod?>(null); // => Task.FromResult<IExternalAuthenticationMethod?>(null);
public Task<IList<IExternalAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IExternalAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>()); // => Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>()); // => Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>()); // => Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
public bool IsPluginActive(IExternalAuthenticationMethod plugin, List<string> systemNames) => false; // public bool IsPluginActive(IExternalAuthenticationMethod plugin, List<string> systemNames) => false;
public bool IsPluginActive(IExternalAuthenticationMethod plugin) => false; // public bool IsPluginActive(IExternalAuthenticationMethod plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IExternalAuthenticationMethod plugin) // public Task<string> GetPluginLogoUrlAsync(IExternalAuthenticationMethod plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,26 +1,26 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Discounts; using Nop.Core.Domain.Discounts;
using Nop.Services.Discounts; //using Nop.Services.Discounts;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
/// <summary> /// <summary>
/// Null implementation of IDiscountPluginManager for SANDBOX /// Null implementation of IDiscountPluginManager for SANDBOX
/// </summary> /// </summary>
public class NullDiscountPluginManager : IDiscountPluginManager //public class NullDiscountPluginManager : IDiscountPluginManager
{ //{
public Task<IDiscountRequirementRule?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IDiscountRequirementRule?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IDiscountRequirementRule?>(null); // => Task.FromResult<IDiscountRequirementRule?>(null);
public Task<IList<IDiscountRequirementRule>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IDiscountRequirementRule>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IDiscountRequirementRule>>(new List<IDiscountRequirementRule>()); // => Task.FromResult<IList<IDiscountRequirementRule>>(new List<IDiscountRequirementRule>());
public Task<IList<IDiscountRequirementRule>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IDiscountRequirementRule>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IDiscountRequirementRule>>(new List<IDiscountRequirementRule>()); // => Task.FromResult<IList<IDiscountRequirementRule>>(new List<IDiscountRequirementRule>());
public bool IsPluginActive(IDiscountRequirementRule plugin, List<string> systemNames) => false; // public bool IsPluginActive(IDiscountRequirementRule plugin, List<string> systemNames) => false;
public Task<string> GetPluginLogoUrlAsync(IDiscountRequirementRule plugin) // public Task<string> GetPluginLogoUrlAsync(IDiscountRequirementRule plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,31 +1,31 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Directory; //using Nop.Core.Domain.Directory;
using Nop.Services.Directory; //using Nop.Services.Directory;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
/// <summary> /// <summary>
/// Null implementation of IExchangeRatePluginManager for SANDBOX /// Null implementation of IExchangeRatePluginManager for SANDBOX
/// </summary> /// </summary>
public class NullExchangeRatePluginManager : IExchangeRatePluginManager //public class NullExchangeRatePluginManager : IExchangeRatePluginManager
{ //{
public Task<IExchangeRateProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) // public Task<IExchangeRateProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IExchangeRateProvider?>(null); // => Task.FromResult<IExchangeRateProvider?>(null);
public bool IsPluginActive(IExchangeRateProvider exchangeRateProvider) => false; // public bool IsPluginActive(IExchangeRateProvider exchangeRateProvider) => false;
public Task<IExchangeRateProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IExchangeRateProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IExchangeRateProvider?>(null); // => Task.FromResult<IExchangeRateProvider?>(null);
public Task<IList<IExchangeRateProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IExchangeRateProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IExchangeRateProvider>>(new List<IExchangeRateProvider>()); // => Task.FromResult<IList<IExchangeRateProvider>>(new List<IExchangeRateProvider>());
public bool IsPluginActive(IExchangeRateProvider plugin, List<string> systemNames) => false; // public bool IsPluginActive(IExchangeRateProvider plugin, List<string> systemNames) => false;
public Task<IList<IExchangeRateProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IExchangeRateProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IExchangeRateProvider>>(new List<IExchangeRateProvider>()); // => Task.FromResult<IList<IExchangeRateProvider>>(new List<IExchangeRateProvider>());
public Task<string> GetPluginLogoUrlAsync(IExchangeRateProvider plugin) // public Task<string> GetPluginLogoUrlAsync(IExchangeRateProvider plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,35 +1,35 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Authentication.External; //using Nop.Services.Authentication.External;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
/// <summary> /// <summary>
/// Null implementation of IExternalAuthenticationService for SANDBOX /// Null implementation of IExternalAuthenticationService for SANDBOX
/// </summary> /// </summary>
public class NullExternalAuthenticationService : IExternalAuthenticationService //public class NullExternalAuthenticationService : IExternalAuthenticationService
{ //{
public Task<IActionResult> AuthenticateAsync(ExternalAuthenticationParameters parameters, string returnUrl = null!) // public Task<IActionResult> AuthenticateAsync(ExternalAuthenticationParameters parameters, string returnUrl = null!)
=> Task.FromResult<IActionResult>(new NotFoundResult()); // => Task.FromResult<IActionResult>(new NotFoundResult());
public Task<ExternalAuthenticationRecord?> GetExternalAuthenticationRecordByIdAsync(int externalAuthenticationRecordId) // public Task<ExternalAuthenticationRecord?> GetExternalAuthenticationRecordByIdAsync(int externalAuthenticationRecordId)
=> Task.FromResult<ExternalAuthenticationRecord?>(null); // => Task.FromResult<ExternalAuthenticationRecord?>(null);
public Task<IList<ExternalAuthenticationRecord>> GetCustomerExternalAuthenticationRecordsAsync(Customer customer) // public Task<IList<ExternalAuthenticationRecord>> GetCustomerExternalAuthenticationRecordsAsync(Customer customer)
=> Task.FromResult<IList<ExternalAuthenticationRecord>>(new List<ExternalAuthenticationRecord>()); // => Task.FromResult<IList<ExternalAuthenticationRecord>>(new List<ExternalAuthenticationRecord>());
public Task DeleteExternalAuthenticationRecordAsync(ExternalAuthenticationRecord externalAuthenticationRecord) // public Task DeleteExternalAuthenticationRecordAsync(ExternalAuthenticationRecord externalAuthenticationRecord)
=> Task.CompletedTask; // => Task.CompletedTask;
public Task<ExternalAuthenticationRecord?> GetExternalAuthenticationRecordByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) // public Task<ExternalAuthenticationRecord?> GetExternalAuthenticationRecordByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters)
=> Task.FromResult<ExternalAuthenticationRecord?>(null); // => Task.FromResult<ExternalAuthenticationRecord?>(null);
public Task AssociateExternalAccountWithUserAsync(Customer customer, ExternalAuthenticationParameters parameters) // public Task AssociateExternalAccountWithUserAsync(Customer customer, ExternalAuthenticationParameters parameters)
=> Task.CompletedTask; // => Task.CompletedTask;
public Task<Customer?> GetUserByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) // public Task<Customer?> GetUserByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters)
=> Task.FromResult<Customer?>(null); // => Task.FromResult<Customer?>(null);
public Task RemoveAssociationAsync(ExternalAuthenticationParameters parameters) // public Task RemoveAssociationAsync(ExternalAuthenticationParameters parameters)
=> Task.CompletedTask; // => Task.CompletedTask;
} //}

View File

@ -1,36 +1,36 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Authentication.MultiFactor; //using Nop.Services.Authentication.MultiFactor;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
/// <summary> /// <summary>
/// Null implementation of IMultiFactorAuthenticationPluginManager for SANDBOX /// Null implementation of IMultiFactorAuthenticationPluginManager for SANDBOX
/// </summary> /// </summary>
public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager //public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager
{ //{
public Task<IMultiFactorAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IMultiFactorAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IMultiFactorAuthenticationMethod?>(null); // => Task.FromResult<IMultiFactorAuthenticationMethod?>(null);
public Task<IList<IMultiFactorAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IMultiFactorAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>()); // => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>()); // => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>()); // => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
public Task<bool> HasActivePluginsAsync(Customer? customer = null, int storeId = 0) // public Task<bool> HasActivePluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false; // public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false;
public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List<string> systemNames) => false; // public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List<string> systemNames) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin) // public Task<string> GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,36 +1,36 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Payments; //using Nop.Services.Payments;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullPaymentPluginManager : IPaymentPluginManager //public class NullPaymentPluginManager : IPaymentPluginManager
{ //{
public Task<IPaymentMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IPaymentMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IPaymentMethod?>(null); // => Task.FromResult<IPaymentMethod?>(null);
public Task<IList<IPaymentMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IPaymentMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>()); // => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0) // public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0)
=> Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>()); // => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>()); // => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
public bool IsPluginActive(IPaymentMethod plugin, List<string> systemNames) => false; // public bool IsPluginActive(IPaymentMethod plugin, List<string> systemNames) => false;
public bool IsPluginActive(IPaymentMethod plugin) => false; // public bool IsPluginActive(IPaymentMethod plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IPaymentMethod plugin) // public Task<string> GetPluginLogoUrlAsync(IPaymentMethod plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
public Task<IList<int>> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod) // public Task<IList<int>> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod)
=> Task.FromResult<IList<int>>(new List<int>()); // => Task.FromResult<IList<int>>(new List<int>());
public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList<int> countryIds) // public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList<int> countryIds)
=> Task.CompletedTask; // => Task.CompletedTask;
} //}

View File

@ -1,30 +1,30 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
using Nop.Services.Shipping.Pickup; //using Nop.Services.Shipping.Pickup;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullPickupPluginManager : IPickupPluginManager //public class NullPickupPluginManager : IPickupPluginManager
{ //{
public Task<IPickupPointProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IPickupPointProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IPickupPointProvider?>(null); // => Task.FromResult<IPickupPointProvider?>(null);
public Task<IList<IPickupPointProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IPickupPointProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>()); // => Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>());
public Task<IList<IPickupPointProvider>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) // public Task<IList<IPickupPointProvider>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!)
=> Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>()); // => Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>());
public Task<IList<IPickupPointProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IPickupPointProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>()); // => Task.FromResult<IList<IPickupPointProvider>>(new List<IPickupPointProvider>());
public bool IsPluginActive(IPickupPointProvider plugin, List<string> systemNames) => false; // public bool IsPluginActive(IPickupPointProvider plugin, List<string> systemNames) => false;
public bool IsPluginActive(IPickupPointProvider plugin) => false; // public bool IsPluginActive(IPickupPointProvider plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IPickupPointProvider plugin) // public Task<string> GetPluginLogoUrlAsync(IPickupPointProvider plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,33 +1,33 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Catalog; //using Nop.Services.Catalog;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
/// <summary> /// <summary>
/// Null implementation of ISearchPluginManager for SANDBOX /// Null implementation of ISearchPluginManager for SANDBOX
/// </summary> /// </summary>
public class NullSearchPluginManager : ISearchPluginManager //public class NullSearchPluginManager : ISearchPluginManager
{ //{
public Task<ISearchProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) // public Task<ISearchProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<ISearchProvider?>(null); // => Task.FromResult<ISearchProvider?>(null);
public bool IsPluginActive(ISearchProvider searchProvider) => false; // public bool IsPluginActive(ISearchProvider searchProvider) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<ISearchProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<ISearchProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<ISearchProvider?>(null); // => Task.FromResult<ISearchProvider?>(null);
public Task<IList<ISearchProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<ISearchProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<ISearchProvider>>(new List<ISearchProvider>()); // => Task.FromResult<IList<ISearchProvider>>(new List<ISearchProvider>());
public bool IsPluginActive(ISearchProvider plugin, List<string> systemNames) => false; // public bool IsPluginActive(ISearchProvider plugin, List<string> systemNames) => false;
public Task<IList<ISearchProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<ISearchProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<ISearchProvider>>(new List<ISearchProvider>()); // => Task.FromResult<IList<ISearchProvider>>(new List<ISearchProvider>());
public Task<string> GetPluginLogoUrlAsync(ISearchProvider plugin) // public Task<string> GetPluginLogoUrlAsync(ISearchProvider plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,36 +1,36 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
using Nop.Services.Shipping; //using Nop.Services.Shipping;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullShippingPluginManager : IShippingPluginManager //public class NullShippingPluginManager : IShippingPluginManager
{ //{
public Task<IShippingRateComputationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IShippingRateComputationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IShippingRateComputationMethod?>(null); // => Task.FromResult<IShippingRateComputationMethod?>(null);
public Task<IList<IShippingRateComputationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IShippingRateComputationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>()); // => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) // public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!)
=> Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>()); // => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>()); // => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
public bool IsPluginActive(IShippingRateComputationMethod plugin, List<string> systemNames) => false; // public bool IsPluginActive(IShippingRateComputationMethod plugin, List<string> systemNames) => false;
public bool IsPluginActive(IShippingRateComputationMethod plugin) => false; // public bool IsPluginActive(IShippingRateComputationMethod plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IShippingRateComputationMethod plugin) // public Task<string> GetPluginLogoUrlAsync(IShippingRateComputationMethod plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
public Task<IList<int>> GetRestrictedCountryIdsAsync(IShippingRateComputationMethod shippingMethod) // public Task<IList<int>> GetRestrictedCountryIdsAsync(IShippingRateComputationMethod shippingMethod)
=> Task.FromResult<IList<int>>(new List<int>()); // => Task.FromResult<IList<int>>(new List<int>());
public Task SaveRestrictedCountriesAsync(IShippingRateComputationMethod shippingMethod, IList<int> countryIds) // public Task SaveRestrictedCountriesAsync(IShippingRateComputationMethod shippingMethod, IList<int> countryIds)
=> Task.CompletedTask; // => Task.CompletedTask;
} //}

View File

@ -1,30 +1,30 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
using Nop.Services.Tax; //using Nop.Services.Tax;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullTaxPluginManager : ITaxPluginManager //public class NullTaxPluginManager : ITaxPluginManager
{ //{
public Task<ITaxProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) // public Task<ITaxProvider?> LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<ITaxProvider?>(null); // => Task.FromResult<ITaxProvider?>(null);
public Task<ITaxProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<ITaxProvider?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<ITaxProvider?>(null); // => Task.FromResult<ITaxProvider?>(null);
public Task<IList<ITaxProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<ITaxProvider>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<ITaxProvider>>(new List<ITaxProvider>()); // => Task.FromResult<IList<ITaxProvider>>(new List<ITaxProvider>());
public Task<IList<ITaxProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<ITaxProvider>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<ITaxProvider>>(new List<ITaxProvider>()); // => Task.FromResult<IList<ITaxProvider>>(new List<ITaxProvider>());
public bool IsPluginActive(ITaxProvider plugin, List<string> systemNames) => false; // public bool IsPluginActive(ITaxProvider plugin, List<string> systemNames) => false;
public bool IsPluginActive(ITaxProvider plugin) => false; // public bool IsPluginActive(ITaxProvider plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(ITaxProvider plugin) // public Task<string> GetPluginLogoUrlAsync(ITaxProvider plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,30 +1,30 @@
using Nop.Core.Domain.Customers; using Nop.Core.Domain.Customers;
using Nop.Services.Cms; //using Nop.Services.Cms;
using Nop.Services.Plugins; //using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services; namespace Mango.Sandbox.EndPoints.Services;
public class NullWidgetPluginManager : IWidgetPluginManager //public class NullWidgetPluginManager : IWidgetPluginManager
{ //{
public Task<IList<IWidgetPlugin>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string widgetZone = null!) // public Task<IList<IWidgetPlugin>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string widgetZone = null!)
=> Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>()); // => Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>());
public Task<IWidgetPlugin?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<IWidgetPlugin?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IWidgetPlugin?>(null); // => Task.FromResult<IWidgetPlugin?>(null);
public Task<IList<IWidgetPlugin>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) // public Task<IList<IWidgetPlugin>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>()); // => Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>());
public Task<IList<IWidgetPlugin>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0) // public Task<IList<IWidgetPlugin>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>()); // => Task.FromResult<IList<IWidgetPlugin>>(new List<IWidgetPlugin>());
public bool IsPluginActive(IWidgetPlugin plugin, List<string> systemNames) => false; // public bool IsPluginActive(IWidgetPlugin plugin, List<string> systemNames) => false;
public bool IsPluginActive(IWidgetPlugin plugin) => false; // public bool IsPluginActive(IWidgetPlugin plugin) => false;
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) // public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false); // => Task.FromResult(false);
public Task<string> GetPluginLogoUrlAsync(IWidgetPlugin plugin) // public Task<string> GetPluginLogoUrlAsync(IWidgetPlugin plugin)
=> Task.FromResult(string.Empty); // => Task.FromResult(string.Empty);
} //}

View File

@ -1,11 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
</ItemGroup>
</Project>

View File

@ -1,48 +0,0 @@
// SignalR Test Client - teszteli a SANDBOX kapcsolatot
using Microsoft.AspNetCore.SignalR.Client;
using System.Text.Json;
Console.WriteLine("=== SANDBOX SignalR Test Client ===");
var hubUrl = "http://localhost:59579/fbHub";
Console.WriteLine($"Connecting to: {hubUrl}");
var connection = new HubConnectionBuilder()
.WithUrl(hubUrl)
.WithAutomaticReconnect()
.Build();
connection.On<int, byte[]>("ReceiveMessage", (tag, data) =>
{
Console.WriteLine($"Received message - Tag: {tag}, Data length: {data?.Length ?? 0}");
});
try
{
await connection.StartAsync();
Console.WriteLine($"Connected! State: {connection.State}");
// Teszt: GetMeasuringUsers (tag 70) hívása
Console.WriteLine("\nTesting GetMeasuringUsers (tag 70)...");
// A SignalR metódus hívása - a szerver "ReceiveMessage" metódusát hívjuk
// MessagePack formátumban küldjük az adatot
var requestData = new { Tag = 70, Data = Array.Empty<byte>() };
await connection.InvokeAsync("ReceiveMessage", 70, Array.Empty<byte>());
Console.WriteLine("Message sent! Waiting for response...");
await Task.Delay(3000);
Console.WriteLine("\nTest completed!");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
Console.WriteLine($"Stack: {ex.StackTrace}");
}
finally
{
await connection.StopAsync();
Console.WriteLine("Disconnected.");
}