Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8703207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:49:32+00:00 2026-06-13T02:49:32+00:00

I am using JOliver’s EventStore and for now I am using a synchronous dispatcher

  • 0

I am using JOliver’s EventStore and for now I am using a synchronous dispatcher so that when the command comes in, it is processed by my command handler then persisted in the event store and then my event handler update my read model. At this stage I am not using NServiceBus but I hope to introduce it later. My eventstore database and readmodel are on the same machine.

What I have noticed is that if an exception is raised in my event handler (and also since I am not using DTC) the event is committed in the eventstore and the dispatch flag is set to false. This is what I expected but when I restart my server, the flag is set to true but the event handler code is never called.

Any ideas why this is happening?

I assumed any non-dispatched events would get dispatched or there would be some retry mechanism in the event store code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:49:34+00:00Added an answer on June 13, 2026 at 2:49 am

    If I am not very mistaken, the dispatch flag set to false should occur once the event is stored. Typically you would do an initialization of your event store like this when starting your application :

    var storeEvents = Wireup.Init()
                      ...
                      .DispatchTo(new DelegateMessageDispatcher(dispatcher.dispatchCommit)
                      .Build();
    

    The flag is set to false before this action occurs dispatcher.dispatchCommit and to true once this action is a success.

    are you not confused with event handler in your aggregate ?

    public void Apply(MystuffDone evt)
    {
       //code...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using JOliver EventStore 3.0 with the Json Serialization addon, I'm invoking it during configuration
Using JOliver EventStore 3.0, and just getting started with simple samples. I have a
Using the Redis info command, I am able to get all the stats of
Using System.Diagnostics.EventLog .NET type one can programmatically create logs into the Event Viewer application.
I have been experimenting with JOliver's Event Store 3.0 as a potential component in
Using Git Bash or MinGW Shell , if I put in a command with
Using Yii, I want to delete all the rows that are not from today.
I'm looking for good examples of testing the domain using JOlivers CommonDomain and EventStore
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for
Using the new mvc4 now gives us access to use facebook oauth otb. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.