public override void RemoveQueuedEvents(EventQueueQuery query)
 {
     using (var proxy = new GenEventingServiceProxy())
     {
         proxy.RemoveQueuedEvents(new ProxyEventQueueQuery(query));
     }
 }
        public override IEnumerable <QueuedEvent> GetQueuedEvents(EventQueueQuery query)
        {
            IEnumerable <QueuedEvent> oQueuedEvents;

            using (var proxy = new GenEventingServiceProxy())
            {
                oQueuedEvents = proxy.GetQueuedEvents(new ProxyEventQueueQuery(query)).Select(oProxyQueuedEvent => oProxyQueuedEvent.GetQueuedEvent());
            }
            Sitecore.Diagnostics.Log.Debug(string.Format("Genworth.SitecoreExt.CustomDataProvider.RemoteClientEventQueue Received [{0}] Events.", oQueuedEvents.Count()), this);
            return(oQueuedEvents);
        }
 public ProxyEventQueueQuery(EventQueueQuery oEventQueueQuery)
 {
     oEventType          = oEventQueueQuery.EventType;
     iFromTimestamp      = oEventQueueQuery.FromTimestamp;
     dFromUtcDate        = oEventQueueQuery.FromUtcDate;
     oInstanceType       = oEventQueueQuery.InstanceType;
     sSourceInstanceName = oEventQueueQuery.SourceInstanceName;
     sTargetInstanceName = oEventQueueQuery.TargetInstanceName;
     iToTimestamp        = oEventQueueQuery.ToTimestamp;
     dToUtcDate          = oEventQueueQuery.ToUtcDate;
     sUsername           = oEventQueueQuery.UserName;
 }
        public EventQueueQuery GetEventQueueQuery()
        {
            EventQueueQuery oEventQueueQuery;

            oEventQueueQuery                    = new EventQueueQuery();
            oEventQueueQuery.EventType          = oEventType;
            oEventQueueQuery.FromTimestamp      = iFromTimestamp;
            oEventQueueQuery.FromUtcDate        = dFromUtcDate;
            oEventQueueQuery.InstanceType       = oInstanceType;
            oEventQueueQuery.SourceInstanceName = sSourceInstanceName;
            oEventQueueQuery.TargetInstanceName = sTargetInstanceName;
            oEventQueueQuery.ToTimestamp        = iToTimestamp;
            oEventQueueQuery.ToUtcDate          = dToUtcDate;
            oEventQueueQuery.UserName           = sUsername;

            return(oEventQueueQuery);
        }
 public override void RemoveQueuedEvents(EventQueueQuery query)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public void RemoveQueuedEvents(EventQueueQuery query)
 {
 }
Ejemplo n.º 7
0
 public IEnumerable <QueuedEvent> GetQueuedEvents(EventQueueQuery query)
 {
     return(Enumerable.Empty <QueuedEvent>());
 }