Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created February 18, 2011 20:03
Show Gist options
  • Select an option

  • Save andreasohlund/834307 to your computer and use it in GitHub Desktop.

Select an option

Save andreasohlund/834307 to your computer and use it in GitHub Desktop.
namespace NServiceBus.ObjectBuilder
{
/// <summary>
/// Represent the various lifecycles available for coponents configured in the container
/// </summary>
public enum DependencyLifecycle
{
/// <summary>
/// The same instance will be returned each time
/// </summary>
SingleInstance,
/// <summary>
/// The instance will be singleton for the duration of the unit of work. In practice this means
/// the processing of a single transport message
/// </summary>
InstancePerUnitOfWork,
/// <summary>
/// A new instance will be returned fro each call
/// </summary>
InstancePerCall
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment