Skip to content

Instantly share code, notes, and snippets.

@vchircu
Last active July 10, 2016 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vchircu/ba517f9b1e826552c0589e0a1901bc4a to your computer and use it in GitHub Desktop.
Save vchircu/ba517f9b1e826552c0589e0a1901bc4a to your computer and use it in GitHub Desktop.
/// Interface used by NServiceBus to manage units of work as a part of the
/// message processing pipeline.
/// </summary>
public interface IManageUnitsOfWork
{
/// <summary>
/// Called before all message handlers and modules
/// </summary>
void Begin();
/// <summary>
/// Called after all message handlers and modules, if an error has occurred the exception will be passed
/// </summary>
void End(Exception ex = null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment