/// <summary> /// Static factory to create a MpdClient /// </summary> /// <param name="hostname"></param> /// <param name="port"></param> /// <returns>Task which return MpdClient</returns> public new static async Task <MpdClient> CreateAsync(string hostname, int port) { var mpdClient = new MpdClient(); await mpdClient.InitAsync(hostname, port); return(mpdClient); }
/// <summary> /// Static factory to create a MpdClient /// </summary> /// <param name="hostname"></param> /// <param name="port"></param> /// <returns>Task which return MpdClient</returns> public new static async Task<MpdClient> CreateAsync(string hostname, int port) { var mpdClient = new MpdClient(); await mpdClient.InitAsync(hostname, port); return mpdClient; }