public Task<IMidiInput> OpenInputAsync(string portId) { var p = new RtMidiInput ((RtMidiPortDetails) Inputs.First (i => i.Id == portId)); return p.OpenAsync ().ContinueWith (t => (IMidiInput) p); }
public Task <IMidiInput> OpenInputAsync(IMidiPortDetails port) { var p = new RtMidiInput(port); return(p.OpenAsync().ContinueWith(t => (IMidiInput)p)); }
public Task <IMidiInput> OpenInputAsync(string portId) { var p = new RtMidiInput((RtMidiPortDetails)Inputs.First(i => i.Id == portId)); return(p.OpenAsync().ContinueWith(t => (IMidiInput)p)); }