private SearchEventsPortalResponse DoSearch(SearchEventsRequest request)
 {
     var handler = CreateHandler();
     return HandleRequest<SearchEventsPortalResponse>(handler, request);
 }
Exemplo n.º 2
0
 public bool Equals(SearchEventsRequest other)
 {
     return base.Equals(other)
         && string.Equals(Title, other.Title, StringComparison.OrdinalIgnoreCase)
         && string.Equals(Keyword, other.Keyword, StringComparison.OrdinalIgnoreCase)
         && EventTopicId == other.EventTopicId
         && EventTypeId == other.EventTypeId
         && EventStartDate.Equals(other.EventStartDate)
         && EventEndDate.Equals(other.EventEndDate)
         && CutoffDate.Equals(other.CutoffDate)
         && PrimaryOrganizationalUnitId == other.PrimaryOrganizationalUnitId
         && OrganizationalUnitId == other.OrganizationalUnitId
         && OrgUnitTypeId == other.OrgUnitTypeId
         && DescendantOption.Equals(other.DescendantOption)
         && LinkedOption.Equals(other.LinkedOption)
         && string.Equals(PostalCode, other.PostalCode)
         && SearchVisibility == other.SearchVisibility
         && RandomSort == other.RandomSort
         && Enumerable.SequenceEqual(OccurrenceIdsInCart ?? new int[] { }, other.OccurrenceIdsInCart ?? new int[] { })
         && Enumerable.SequenceEqual(DynamicColumns ?? new string[] { }, other.DynamicColumns ?? new string[] { })
         && CurrentLatitude == other.CurrentLatitude
         && CurrentLongitude == other.CurrentLongitude
         && string.Equals(OrganizationalUnitName, other.OrganizationalUnitName);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Retrieves the event cache data.
 /// </summary>
 /// <returns></returns>
 public IEnumerable<EventCacheView> GetData(SearchEventsRequest request)
 {
     return GetData(request.OrganizationalUnitId, request.OrgUnitContextKey, request.DescendantOption, request.LinkedOption);
 }