refactor: use specific method instead of string
All checks were successful
Test if Server can be built / build-server (push) Successful in 23s
All checks were successful
Test if Server can be built / build-server (push) Successful in 23s
This commit is contained in:
parent
59ba0ece7f
commit
2550f597a9
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public class PacketDistributorService : IHostedService
|
|||
|
||||
var packet = this.deserializationMap[item.OperationCode](item.MessageBody);
|
||||
this.logger.PacketData(JsonConvert.SerializeObject(packet));
|
||||
this.packetHandlersInstantiation[item.OperationCode].GetType().GetMethod("HandleAsync")
|
||||
this.packetHandlersInstantiation[item.OperationCode].GetType().GetMethod(nameof(IPacketHandler<IPacket>.HandleAsync))
|
||||
?.Invoke(this.packetHandlersInstantiation[item.OperationCode], new object[] { packet, item.Session });
|
||||
|
||||
this.logger.PacketFinished(item.Session.Id, item.OperationCode);
|
||||
|
|
Loading…
Reference in a new issue