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.Createto passPacketRegistryinstance from DI
Breaking Changes
- Updated
RemoteServerconstructors to take an instance ofPacketRegistry - Removed
InternalUniScanClientPacketConfigurator - Packets are now registered from
AssembliesPacketSource -
InternalUniScanClientModuleno longer adds anIPacketConfiguratorto 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
- The new ID for this packet is
- Removed
BuiltinPacketRegistrar - Removed
IPacketConfigurator - Moved
PacketRegistryandRegistryPacketAttributetoUniScan.Network.Registry - Created
IPacketSourceandAssembliesPacketSource-
AssembliesPacketSourcecollects all classes that inheritIPacketand have theRegistryPacketattribute.
-
- Removed the singleton Instance property from
PacketRegistry - Created
PacketRegistry.RegisterFromSourceandPacketRegistry.RegisterFromSource<TPacketSource>-
PacketRegistry.RegisterFromSourcetakes a givenIPacketSourceand registers all the packets it provides. -
PacketRegistry.RegisterFromSource<TPacketSource>creates a new instance of the givenTPacketSourcetype and passes it toPacketRegistry.RegisterFromSource
-
UniScan.Server.Core
-
SubscribePacketHandlernow sends the newly renamedScannerRegistrationPacket
Breaking Changes
- Removed
PacketRegistry.RegisterFromSource -
InternalUniScanServerModuleno longer adds anIPacketConfiguratorto DI as this class has been removed. - Packets are now registered from
AssembliesPacketSource
UniScan.Server.Host
- Now creates its own
PacketRegistryand passes it to theUniScanServerconstructor.
UniScan.Tests
- Now creates its own
PacketRegistryand passes it to theClientSocketconstructor.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.