public override void ParsePayload(int payloadSize, Stream stream) { base.ParsePayload(payloadSize, stream); string[] data = Encoding.UTF8.GetString(Utils.ReadFull(stream, payloadSize)).Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); List <ClientDrive> driveInfo = new List <ClientDrive>(); foreach (var str in data) { driveInfo.Add(ClientDrive.FromString(str)); } Payload = driveInfo.ToArray(); }
public ManagerBitLockerUnlockRequest(ClientDrive drive, string password, CryptoProvider cryptoProvider) : base(PacketType.ManagerBitLockerUnlock) { this.cryptoProvider = cryptoProvider; Payload = new ManagerBitLockerUnlock(drive, password, cryptoProvider); }
public IPayload <ManagerBitLockerUnlock> CreateManagerBitLockerUnlockRequest(ClientDrive drive, string password, CryptoProvider cryptor) => new ManagerBitLockerUnlockRequest(drive, password, cryptor);
public IPayload <ClientDrive> CreateManagerBitLockerLockRequest(ClientDrive drive) => new ManagerBitLockerLockRequest(drive);