public async Task WriteValueAsync(RegistryBaseKey baseKey, string key, string valueName, string value) { var command = new RegistryWriteStringValueCommand(baseKey, key, valueName, value); IServiceCommandResponse response = await _commandBridge.SendCommandAsync(command); response.ThrowIfError(); }
public async Task <string> ReadValueAsync(RegistryBaseKey baseKey, string key, string valueName, string defaultValue) { var command = new RegistryReadStringValueCommand(baseKey, key, valueName, defaultValue); IServiceCommandResponse response = await _commandBridge.SendCommandAsync(command); response.ThrowIfError(); return((string)response.Result); }
public async Task <bool> ReadValueAsync(RegistryBaseKey baseKey, string key, string valueName, bool defaultValue) { var command = new RegistryReadIntValueCommand(baseKey, key, valueName, defaultValue ? 1 : 0); IServiceCommandResponse response = await _commandBridge.SendCommandAsync(command); response.ThrowIfError(); return((int)response.Result != 0); }