public override Task <GetMasterVolumeReply> GetMasterVolume(GetMasterVolumeRequest request, ServerCallContext context) { Log.Info("Executing [{Name}]", nameof(GetMasterVolume)); return(Task.FromResult(new GetMasterVolumeReply() { Value = (int)SimpleAudioManager.GetMasterVolume() })); }
public override async Task <GetMasterVolumeReply> GetMasterVolume(GetMasterVolumeRequest request, ServerCallContext context) { var value = await InteropService.GetMasterVolume(); return(new GetMasterVolumeReply() { Value = value }); }