/// <summary> /// Subscribes the bus to all related events for a command /// </summary> /// <remarks>Don't use an interface because you cannot use polymorphic subscription but only polymorphic handlers</remarks> /// <typeparam name="T"></typeparam> /// <returns></returns> public static ICqrsConfigurer SubscribeCommandEvents <T>(this ICqrsConfigurer configurer) where T : ICommand { configurer.Subscribe <CommandCompletedEvent <T> >(); configurer.Subscribe <CommandErrorEvent <T> >(); configurer.Subscribe <CommandValidationEvent <T> >(); return(configurer); }
public static void AddTasteSubscriptions(this ICqrsConfigurer configurer) { configurer.Subscribe <EntityAddedEvent <MovieType> >(); }
public static void CatalogSubscribe(this ICqrsConfigurer configurer) { configurer.Subscribe <MovieAddedEvent>(); configurer.Subscribe <SuggestionEvaluatedEvent>(); }
public static void TasteSubscribe(this ICqrsConfigurer configurer) { configurer.Subscribe <MovieAddedEvent>(); }
public static void VehicleSubscribe(this ICqrsConfigurer configurer) { configurer.Subscribe <VehicleAddedEvent>(); }