Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }