submodule对gitea不管用,所以直接拉了一份拉格兰
This commit is contained in:
15
Lagrange.Core/Lagrange.OneBot/Extensions/HostExtension.cs
Normal file
15
Lagrange.Core/Lagrange.OneBot/Extensions/HostExtension.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Lagrange.OneBot.Utility;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Lagrange.OneBot.Extensions;
|
||||
|
||||
public static class HostExtension
|
||||
{
|
||||
public static T InitializeMusicSigner<T>(this T host) where T : IHost
|
||||
{
|
||||
host.Services.GetRequiredService<MusicSigner>();
|
||||
|
||||
return host;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user