예제 #1
0
 public void Handle(
     IUntypedActorContext context,
     IActorRef manager,
     string aggregateId)
 {
     context.GetLogger().Info(aggregateId);
     manager.Tell(new ReportAggregateId(aggregateId));
 }
예제 #2
0
        public void Handle(
            IUntypedActorContext actorContext,
            IActorRef repository,
            TProjectionContext projectionContext,
            IActorRef manager,
            EventEnvelope eventEnvelope)
        {
            var projector = FindOrCreate(eventEnvelope.PersistenceId, actorContext);

            projector.Tell(new ProjectEvent <TProjectionContext> {
                Context = projectionContext, Event = eventEnvelope
            });
            actorContext.GetLogger().Info("{0} - {1} - {2}", eventEnvelope.Event.GetType(), eventEnvelope.PersistenceId, eventEnvelope.SequenceNr);
        }
 public static ILoggingAdapter GetSeriLogger(this IUntypedActorContext context)
 {
     return(context.GetLogger <SerilogLoggingAdapter>());
 }
 public static ILoggingAdapter GetSeriLogger(this IUntypedActorContext context)
 {
     return(context.GetLogger(new SerilogLogMessageFormatter()));
 }
예제 #5
0
 public void Handle(
     IUntypedActorContext context,
     EventEnvelope persistedEvent)
 {
     context.GetLogger().Info(persistedEvent.Offset.ToString());
 }