Exemple #1
0
        protected override void AddBrokerHandlers(IMessageHandlerProvider provider)
        {
            provider.RegisterConsumer <NotifyUserEvent, NotifyUserEventHandler>();
            provider.RegisterCommandConsumer <SetMessageType, SetTypeEventHandler>();

            provider.RegisterCommand <CreateRepostGroup>();
            provider.RegisterCommand <RepostCreated>();
            provider.RegisterCommand <SetMessageType>();
        }
Exemple #2
0
        protected override void AddBrokerHandlers(IMessageHandlerProvider provider)
        {
            provider.RegisterConsumer <LoginEvent, LoginEventHandler>();
            provider.RegisterConsumer <UserTokenRemoved, UserTokenRemovedHandler>();
            provider.RegisterConsumer <UserTokenChanged, UserTokenChangedHandler>();
            provider.RegisterCommandConsumer <CreateRepostGroup, RepostEventGroupCreatedHandler>();
            provider.RegisterCommandConsumer <RepostCreated, RepostedEventHandler>();
            provider.RegisterCommandConsumer <ExecuteNextRepost, RepostUserEventHandler>();

            provider.RegisterCommand <ExecuteNextRepost>();
            provider.RegisterCommand <RepostCreated>();
        }