public async Task <SongFinderReply> GetSongs(string term) { var channel = GrpcChannel.ForAddress("https://localhost:44347"); var client = new SongFinder.SongFinderClient(channel); return(await client.FindSongAsync(new SongFinderRequest { Term = term })); }
public SongClient(SongFinder.SongFinderClient client) { _client = client; }