public Task<IMidiOutput> OpenOutputAsync(string portId) { var p = new RtMidiOutput ((RtMidiPortDetails) Outputs.First (i => i.Id == portId)); return p.OpenAsync ().ContinueWith (t => (IMidiOutput) p); }
public Task <IMidiOutput> OpenOutputAsync(IMidiPortDetails port) { var p = new RtMidiOutput(port); return(p.OpenAsync().ContinueWith(t => (IMidiOutput)p)); }
public Task <IMidiOutput> OpenOutputAsync(string portId) { var p = new RtMidiOutput((RtMidiPortDetails)Outputs.First(i => i.Id == portId)); return(p.OpenAsync().ContinueWith(t => (IMidiOutput)p)); }