/// <summary> /// Add sagas that were already added to the container to the registration /// </summary> public static void AddSagasFromContainer(this IRegistrationConfigurator configurator, IComponentContext context) { var sagaTypes = context.FindTypes(TypeMetadataCache.IsSagaOrDefinition); configurator.AddSagas(sagaTypes); }
/// <summary> /// Add consumers that were already added to the container to the registration /// </summary> public static void AddConsumersFromContainer(this IRegistrationConfigurator configurator, IComponentContext context) { var consumerTypes = context.FindTypes(TypeMetadataCache.IsConsumerOrDefinition); configurator.AddConsumers(consumerTypes); }