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