Пример #1
0
        public static IConveyBuilder AddModuleRequests(this IConveyBuilder builder)
        {
            builder.AddModuleRegistry();
            builder.Services.AddSingleton <IModuleSubscriber, ModuleSubscriber>();
            builder.Services.AddTransient <IModuleClient, ModuleClient>();

            return(builder);
        }