Lagrange.Core.Upcoming 1.0.7

This package has a SemVer 2.0.0 package version: 1.0.7+84c9569b645d8df17ef18c256dbe4f7f99a80695.
dotnet add package Lagrange.Core.Upcoming --version 1.0.7
                    
NuGet\Install-Package Lagrange.Core.Upcoming -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lagrange.Core.Upcoming" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lagrange.Core.Upcoming" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Lagrange.Core.Upcoming" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lagrange.Core.Upcoming --version 1.0.7
                    
#r "nuget: Lagrange.Core.Upcoming, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lagrange.Core.Upcoming@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lagrange.Core.Upcoming&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Lagrange.Core.Upcoming&version=1.0.7
                    
Install as a Cake Tool

Lagrange.Core.Upcoming

这是一个用于Lagrange.Core运行时,拦截并重定向方法的库

  • 你可以是用此库拦截重写自己的逻辑,从而实现更加灵活的BOT功能。
  • 拦截用到的钩子命名空间都以On开头。

示例

//拦截方法
On.Lagrange.Core.Internal.Context.SocketContext.OnRecvPacket += SocketContext_OnRecvPacket;

private void SocketContext_OnRecvPacket(On.Lagrange.Core.Internal.Context.SocketContext.orig_OnRecvPacket orig, Core.Internal.Context.SocketContext self, ReadOnlySpan<byte> packet)
{
    //对数据进行处理代码...

    //回调原函数
    orig(self, packet);
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Lagrange.Core.Upcoming:

Package Downloads
Lagrange.XocMat

TShock Manager Bot

GitHub repositories

This package is not used by any popular GitHub repositories.

Lagrange.Core - Address ClientUUID issue as per GHSA-hvm9-wc8j-mgrc with credits to original contributors and TShock team, see advisory for more details.