mirror of
https://gitea.tendokyu.moe/Kayori/MedusaPluginChargeMachine.git
synced 2026-09-28 01:57:58 +03:00
25 lines
696 B
C#
25 lines
696 B
C#
using Abstractions;
|
|
using MedusaPluginChargeMachine.Services;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace MedusaPluginChargeMachine;
|
|
|
|
public class ChargeMachinePlugin: IMedusaPlugin
|
|
{
|
|
public string Name => "Charge Machine";
|
|
public string Version => "1.0.0";
|
|
public string Description => "Plugin for the paseli charge machine";
|
|
|
|
public Task OnBuilderInitialize(WebApplicationBuilder builder)
|
|
{
|
|
builder.Services.AddTransient<ISessionService, SessionService>();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task OnAppInitialize(WebApplication app)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
} |