protected Task On(SchemaCreated @event, EnvelopeHeaders headers) { return(Collection.CreateAsync(@event, headers, s => { s.SchemaDef = SchemaEventDispatcher.Create(@event, registry); SimpleMapper.Map(@event, s); })); }
public void On(SchemaCreated @event, EnvelopeHeaders headers) { var id = @event.SchemaId.Id; Schemas = Schemas.SetItem(id, EntityMapper.Create <JsonSchemaEntity>(@event, headers, s => { s.SchemaDef = SchemaEventDispatcher.Create(@event, registry); SimpleMapper.Map(@event, s); })); }
protected void On(SchemaCreated @event) { totalFields += @event.Fields?.Count ?? 0; schema = SchemaEventDispatcher.Create(@event, registry); }