public void Handle(ProjectionManagementMessage.GetQuery message) { _lastAccessed = _timeProvider.Now; if (!ProjectionManagementMessage.RunAs.ValidateRunAs(Mode, ReadWrite.Read, _runAs, message)) { return; } var emitEnabled = _persistedState.EmitEnabled ?? false; message.Envelope.ReplyWith( new ProjectionManagementMessage.ProjectionQuery(_name, Query, emitEnabled, _persistedState.SourceDefinition)); }
public void Handle(ProjectionManagementMessage.GetQuery message) { var projection = GetProjection(message.Name); if (projection == null) { message.Envelope.ReplyWith(new ProjectionManagementMessage.NotFound()); } else { projection.Handle(message); } }
public void Handle(ProjectionManagementMessage.GetQuery message) { message.Envelope.ReplyWith(new ProjectionManagementMessage.ProjectionQuery(_name, Query)); }