Example #1
0
        /// <summary>
        /// Add query sender and handlers
        /// </summary>
        /// <param name="handlersAssemblies">query handlers assemblies</param>
        /// <returns></returns>
        public IServiceCollection AddCqrsSimpleQueries(Assembly[] handlersAssemblies)
        {
            var builder = new SimpleQueryModuleBuilder(_collection, handlersAssemblies);

            return(builder.AddServices());
        }
Example #2
0
        /// <summary>
        /// Add query sender and handlers
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddCqrsSimpleQueries(this IServiceCollection services)
        {
            var builder = new SimpleQueryModuleBuilder(services, typeof(UserBalanceQueryHandler).Assembly);

            return(builder.AddServices());
        }