public static PublishingCommandsDescriptor <IBoundedContextRegistration> WithLoopback(this ListeningCommandsDescriptor <IBoundedContextRegistration> descriptor, string route = null)
        {
            route = route ?? descriptor.Route;
            IRegistrationWrapper <IBoundedContextRegistration> wrapper = descriptor;

            return(descriptor.PublishingCommands(descriptor.Types).To(wrapper.Registration.Name).With(route));
        }
        public static ListeningEventsDescriptor <IBoundedContextRegistration> WithLoopback(this PublishingEventsDescriptor <IBoundedContextRegistration> descriptor, string route = null)
        {
            route = route ?? descriptor.Route;
            IRegistrationWrapper <IBoundedContextRegistration> wrapper = descriptor;

            return(descriptor.ListeningEvents(descriptor.Types).From(wrapper.Registration.Name).On(route));
        }
 public static IBoundedContextRegistration WithProjection <TProjection, TBatchContext>(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, string fromBoundContext, int batchSize = 0, int applyTimeoutInSeconds = 0, Func <TProjection, TBatchContext> beforeBatchApply = null, Action <TProjection, TBatchContext> afterBatchApply = null)
 {
     return(wrapper.Registration.WithProjection(fromBoundContext, batchSize, applyTimeoutInSeconds, beforeBatchApply, afterBatchApply));
 }
 public static IBoundedContextRegistration WithProjection(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, object projection, string fromBoundContext, int batchSize = 0, int applyTimeoutInSeconds = 0)
 {
     return(wrapper.Registration.WithProjection <object, object>(projection, fromBoundContext, batchSize, applyTimeoutInSeconds));
 }
 public static IBoundedContextRegistration WithCommandsHandler(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, Type handler)
 {
     return(wrapper.Registration.WithCommandsHandler(handler));
 }
 public static IBoundedContextRegistration WithCommandsHandlers(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, params Type[] handlers)
 {
     return(wrapper.Registration.WithCommandsHandlers(handlers));
 }
 public static ProcessingOptionsDescriptor <IBoundedContextRegistration> ProcessingOptions(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, string route)
 {
     return(wrapper.Registration.ProcessingOptions(route));
 }
 public static IPublishingRouteDescriptor <PublishingEventsDescriptor <IBoundedContextRegistration> > PublishingEvents(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, params Type[] types)
 {
     return(wrapper.Registration.PublishingEvents(types));
 }
 public static IListeningRouteDescriptor <ListeningCommandsDescriptor <IBoundedContextRegistration> > ListeningCommands(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, params Type[] types)
 {
     return(wrapper.Registration.ListeningCommands(types));
 }
 public static IListeningEventsDescriptor <IBoundedContextRegistration> ListeningEvents(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, params Type[] types)
 {
     return(wrapper.Registration.ListeningEvents(types));
 }
 public static IPublishingCommandsDescriptor <IBoundedContextRegistration> PublishingCommands(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, params Type[] commandsTypes)
 {
     return(wrapper.Registration.PublishingCommands(commandsTypes));
 }
 public static IPublishingCommandsDescriptor <IDefaultRoutingRegistration> PublishingCommands(this IRegistrationWrapper <IDefaultRoutingRegistration> wrapper,
                                                                                              params Type[] commandsTypes)
 {
     return(wrapper.Registration.PublishingCommands(commandsTypes));
 }
 public static IBoundedContextRegistration WithProcess <TProcess>(this IRegistrationWrapper <IBoundedContextRegistration> wrapper) where TProcess : IProcess
 {
     return(wrapper.Registration.WithProcess <TProcess>());
 }
 public static IBoundedContextRegistration WithProcess(this IRegistrationWrapper <IBoundedContextRegistration> wrapper, Type process)
 {
     return(wrapper.Registration.WithProcess(process));
 }