public Event GetEventSubTreeNoSelections(long eventId) { GetEventSubTreeNoSelectionsRequest request = new GetEventSubTreeNoSelectionsRequest(); request.EventClassifierIds = new long[] {eventId}; GetEventSubTreeNoSelectionsResponse response = _proxy.GetEventSubTreeNoSelections(request); if (response.ReturnStatus.Code != 0) throw new Exception(response.ReturnStatus.Description); // Since only receive one eventId as param then can assume will always be just one event returned. Event[] eventsTreeToReturn = EventConverter.ConvertEventClassifierTypeCollection(response.EventClassifiers); return eventsTreeToReturn[0]; }
/// <remarks/> public void GetEventSubTreeNoSelectionsAsync(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest, object userState) { if ((this.GetEventSubTreeNoSelectionsOperationCompleted == null)) { this.GetEventSubTreeNoSelectionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventSubTreeNoSelectionsOperationCompleted); } this.InvokeAsync("GetEventSubTreeNoSelections", new object[] { getEventSubTreeNoSelectionsRequest}, this.GetEventSubTreeNoSelectionsOperationCompleted, userState); }
/// <remarks/> public void GetEventSubTreeNoSelectionsAsync(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest) { this.GetEventSubTreeNoSelectionsAsync(getEventSubTreeNoSelectionsRequest, null); }
/// <remarks/> public System.IAsyncResult BeginGetEventSubTreeNoSelections(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEventSubTreeNoSelections", new object[] { getEventSubTreeNoSelectionsRequest}, callback, asyncState); }
public GetEventSubTreeNoSelectionsResponse GetEventSubTreeNoSelections(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest) { object[] results = this.Invoke("GetEventSubTreeNoSelections", new object[] { getEventSubTreeNoSelectionsRequest}); return ((GetEventSubTreeNoSelectionsResponse)(results[0])); }