public MyClientAdapter() { this.connectedClient = new Lazy <Task <MyClient> >(async() => { var client = new MyClient(); await client.ConnectAsync(); return(client); }); }
public MyClientAdapter() { this.connectedClient = new Lazy <Task <MyClient> >(async() => { var client = new MyClient(); await client.ConnectAsync(); return(client); }); }