Make register callback optional
This commit is contained in:
parent
9d2ded9e84
commit
4fa8af7a54
|
@ -72,6 +72,10 @@ namespace Tesses.RPC
|
|||
}
|
||||
}
|
||||
private event Action<JsonMessage<TEnum>> recv_res;
|
||||
public void Register<T>(TEnum val) where T : TType
|
||||
{
|
||||
Register<T>(val,(ctx)=>{});
|
||||
}
|
||||
public void Register<T>(TEnum val,Action<MessageReceived<T,TType>> recv) where T : TType
|
||||
{
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
<PackageId>Tesses.RPC</PackageId>
|
||||
<Author>Mike Nolan</Author>
|
||||
<Company>Tesses</Company>
|
||||
<Version>1.0.0</Version>
|
||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0</FileVersion>
|
||||
<Version>1.0.1</Version>
|
||||
<AssemblyVersion>1.0.1</AssemblyVersion>
|
||||
<FileVersion>1.0.1</FileVersion>
|
||||
<Description>A simple RPC library for .NET</Description>
|
||||
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
|
|
Loading…
Reference in New Issue