protected Task On(FieldEnabled @event, EnvelopeHeaders headers)
 {
     return(UpdateSchema(@event, headers, s => SchemaEventDispatcher.Dispatch(@event, s)));
 }
 protected Task On(SchemaUnpublished @event, EnvelopeHeaders headers)
 {
     return(UpdateSchema(@event, headers, s => SchemaEventDispatcher.Dispatch(@event, s)));
 }
 protected Task On(FieldAdded @event, EnvelopeHeaders headers)
 {
     return(UpdateSchema(@event, headers, s => SchemaEventDispatcher.Dispatch(@event, s, registry)));
 }
        protected Task On(SchemaCreated @event, EnvelopeHeaders headers)
        {
            var schema = SchemaEventDispatcher.Dispatch(@event, registry);

            return(Collection.CreateAsync(@event, headers, s => { UpdateSchema(s, schema); SimpleMapper.Map(@event, s); }));
        }
Exemplo n.º 5
0
 protected void On(FieldDeleted @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, schema);
 }
Exemplo n.º 6
0
 protected Task On(SchemaFieldsReordered @event, EnvelopeHeaders headers)
 {
     return UpdateSchema(@event, headers, s => SchemaEventDispatcher.Dispatch(@event, s));
 }
Exemplo n.º 7
0
 protected void On(FieldShown @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, schema);
 }
Exemplo n.º 8
0
 protected void On(SchemaUpdated @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, schema);
 }
Exemplo n.º 9
0
        protected void On(SchemaCreated @event)
        {
            totalFields += @event.Fields?.Count ?? 0;

            schema = SchemaEventDispatcher.Dispatch(@event, registry);
        }
Exemplo n.º 10
0
        public void On(FieldAdded @event)
        {
            totalFields++;

            schema = SchemaEventDispatcher.Dispatch(@event, schema, registry);
        }
Exemplo n.º 11
0
 protected void On(SchemaUnpublished @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, schema);
 }
Exemplo n.º 12
0
 protected void On(SchemaFieldsReordered @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, schema);
 }
Exemplo n.º 13
0
 protected void On(SchemaCreated @event)
 {
     schema = SchemaEventDispatcher.Dispatch(@event, registry);
 }