You are browsing as a guest. Sign up (or log in) to start making projects!

5h 19m 40s logged

UniScan source is now up, you can view it at https://github.com/UniScanProject/UniScan

UniScan Client & Server v0.0.2

https://github.com/UniScanProject/UniScan/releases/tag/UniScan.Client.App%2F0.0.2
https://github.com/UniScanProject/UniScan/releases/tag/UniScan.Server.Host%2F0.0.2

  • Added CI for UniScan.Server.Host

UniScan.Client.Core

  • Use DI for PacketRegistry
  • Update RemoteFactory.Create to pass PacketRegistry instance from DI

Breaking Changes

  • Updated RemoteServer constructors to take an instance of PacketRegistry
  • Removed InternalUniScanClientPacketConfigurator
  • Packets are now registered from AssembliesPacketSource
  • InternalUniScanClientModule no longer adds an IPacketConfigurator to DI as this class has been removed.

UniScan.Network

Breaking Changes

  • Renamed ScannerInfoPacket -> ScannerRegistrationPacket
    • The new ID for this packet is UniScan:packet/clientbound/device/registration
      • This fixes a bug where there were two instances of the same packet ID used for different packets in the codebase
  • Removed BuiltinPacketRegistrar
  • Removed IPacketConfigurator
  • Moved PacketRegistry and RegistryPacketAttribute to UniScan.Network.Registry
  • Created IPacketSource and AssembliesPacketSource
    • AssembliesPacketSource collects all classes that inherit IPacket and have the RegistryPacket attribute.
  • Removed the singleton Instance property from PacketRegistry
  • Created PacketRegistry.RegisterFromSource and PacketRegistry.RegisterFromSource<TPacketSource>
    • PacketRegistry.RegisterFromSource takes a given IPacketSource and registers all the packets it provides.
    • PacketRegistry.RegisterFromSource<TPacketSource> creates a new instance of the given TPacketSource type and passes it to PacketRegistry.RegisterFromSource

UniScan.Server.Core

  • SubscribePacketHandler now sends the newly renamed ScannerRegistrationPacket

Breaking Changes

  • Removed PacketRegistry.RegisterFromSource
  • InternalUniScanServerModule no longer adds an IPacketConfigurator to DI as this class has been removed.
  • Packets are now registered from AssembliesPacketSource

UniScan.Server.Host

  • Now creates its own PacketRegistry and passes it to the UniScanServer constructor.

UniScan.Tests

  • Now creates its own PacketRegistry and passes it to the ClientSocket constructor.
0
17

Comments 0

No comments yet. Be the first!