Example #1
0
        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];
        }
Example #2
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);
 }
Example #3
0
 /// <remarks/>
 public void GetEventSubTreeNoSelectionsAsync(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest) {
     this.GetEventSubTreeNoSelectionsAsync(getEventSubTreeNoSelectionsRequest, null);
 }
Example #4
0
 /// <remarks/>
 public System.IAsyncResult BeginGetEventSubTreeNoSelections(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("GetEventSubTreeNoSelections", new object[] {
                 getEventSubTreeNoSelectionsRequest}, callback, asyncState);
 }
Example #5
0
 public GetEventSubTreeNoSelectionsResponse GetEventSubTreeNoSelections(GetEventSubTreeNoSelectionsRequest getEventSubTreeNoSelectionsRequest) {
     object[] results = this.Invoke("GetEventSubTreeNoSelections", new object[] {
                 getEventSubTreeNoSelectionsRequest});
     return ((GetEventSubTreeNoSelectionsResponse)(results[0]));
 }