mirror of
https://gitea.tendokyu.moe/Kayori/MedusaPluginChargeMachine.git
synced 2026-09-22 22:27:54 +03:00
Fix for the new DoesProfileExist delegate so i can inject DI services
This commit is contained in:
@@ -8,10 +8,6 @@ namespace MedusaPluginChargeMachine;
|
||||
|
||||
public class ChargeMachinePlugin: IMedusaPlugin
|
||||
{
|
||||
public Task<bool> DoesProfileExist(string cardId)
|
||||
{
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
public string Name => "Charge Machine";
|
||||
public string Version => "1.0.0";
|
||||
@@ -20,6 +16,7 @@ public class ChargeMachinePlugin: IMedusaPlugin
|
||||
public int? MinVer => null;
|
||||
public int? MaxVer => null;
|
||||
public Encoding? ForcedEncoding => null;
|
||||
public Delegate DoesProfileExist => () => false;
|
||||
|
||||
public Task OnBuilderInitialize(WebApplicationBuilder builder)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user