Ejemplo n.º 1
0
 //Can be moved to it's own folder:
 private void AddCustomerEvents(IContextSchemaConfigs configs)
 {
     //To avoid the renaming of types from affecting the event reading behaviour:
     configs.Add(new CustomerRegisteredSchemaConfig());
     //OR:
     configs.Add(new SchemaFor <CustomerRelocated>("CustomerRelocated"));
     configs.Add(new SchemaFor <CustomerContactInfoChanged>("CustomerContactInfoChanged"));
 }
Ejemplo n.º 2
0
 public override void OnModelCreating(IContextSchemaConfigs configs)
 {
     AddCustomerEvents(configs);
 }
 public abstract void OnModelCreating(IContextSchemaConfigs configs);