void ConfigureView() { // Update the user interface for the detail item if (IsViewLoaded && DetailItem != null) { detailDescriptionLabel.Text = DetailItem.ToString(); var myDel = new MySimpleCBCentralManagerDelegate(); var myMgr = new CBCentralManager(myDel, DispatchQueue.CurrentQueue); System.Threading.Thread.Sleep(200); MDSWrapper wrapper = new MDSWrapper(); MDSResponseBlock block = new MDSResponseBlock(async(arg0) => DoThing(arg0, wrapper)); MDSEventBlock eventBlock = (MDSEvent arg0) => DoTheOtherThing(arg0, wrapper); wrapper.DoSubscribe("MDS/ConnectedDevices", new Foundation.NSDictionary(), block, eventBlock); } }