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

            return(new GetMasterVolumeReply()
            {
                Value = value
            });
        }