internal RegistryReadValueCommand(BridgeMessageDeserializer deserializer) : base(deserializer.CommandName) { BaseKey = deserializer.GetEnumValue <RegistryBaseKey>(ParamName.RegistryBaseKey); Key = deserializer.GetStringValue(ParamName.RegistryKey); ValueName = deserializer.GetStringValue(ParamName.RegistryValueName); DefaultValue = (T)Convert.ChangeType(deserializer.GetValue(ParamName.RegistryDefaultValue), typeof(T)); }
internal RegistryWriteValueCommand(BridgeMessageDeserializer deserializer) : base(deserializer.CommandName) { BaseKey = deserializer.GetEnumValue <RegistryBaseKey>(ParamName.RegistryBaseKey); Key = deserializer.GetStringValue(ParamName.RegistryKey); ValueName = deserializer.GetStringValue(ParamName.RegistryValueName); Value = (T)deserializer.GetValue(ParamName.RegistryValue); }
internal EchoCommand(BridgeMessageDeserializer deserializer) : base(ServiceCommandName.Echo) { EchoMessage = deserializer.GetStringValue(ParamName.EchoMessage); }