public static void QueryInstanceASync(CimSession cimSession, string cimNamespace) { try { string query = QueryInstanceCore(); IObservable<CimInstance> queryInstances = cimSession.QueryInstancesAsync(cimNamespace, "WQL", query, GetOperationOptions()); TestObserver<CimInstance> observer = new TestObserver<CimInstance>(); IDisposable disposeable = queryInstances.Subscribe(observer); observer.WaitForCompletion(); } catch (CimException ex) { PrintCimException(ex); } catch( Exception ex) { Console.WriteLine(ex.Message); } }