コード例 #1
0
        private void OnContainerEvent(ContainerEventResponse eventResp)
        {
            var eventDesc = new ContainerEventDescription()
            {
                EventType          = EventTypeFromString(eventResp.Status),
                ContainerId        = eventResp.Actor.Id,
                ContainerName      = eventResp.Actor.Attributes.Name,
                TimeStampInSeconds = eventResp.Time,
                IsHealthy          = eventResp.IsHealthStatusHealthy,
                ExitCode           = eventResp.Actor.Attributes.ExitCode
            };

            var notification = new ContainerEventNotification()
            {
                SinceTime = eventResp.Time,
                UntilTime = eventResp.Time,
                EventList = new List <ContainerEventDescription> {
                    eventDesc
                }
            };

            this.activatorService.OnContainerEvent(notification);
            this.UpdateSinceTime(eventResp.Time);
        }
コード例 #2
0
 internal void OnContainerEvent(ContainerEventNotification eventNotification)
 {
     this.activatorServiceAgent.ProcessContainerEvents(eventNotification);
 }