/// <summary>
 ///  Constructor
 /// </summary>
 /// <param name="key">A key for this lifetimemanager resolver</param>
 PerMessageOrExecutionContextLifetimeManager(Guid key)
 {
     if (key == Guid.Empty)
         throw new ArgumentException("PerMessageOrExecutionContextLifetimeManagerKeyCannotBeNull");
     _key = key;
     _perMessageContextLifetimeManager = new PerMessageContextLifetimeManager(key);
     _perExecutionContextLifetimeManager = new PerExecutionContextLifetimeManager(key);
 }
Beispiel #2
0
 /// <summary>
 ///  Constructor
 /// </summary>
 /// <param name="key">A key for this lifetimemanager resolver</param>
 PerMessageOrExecutionContextLifetimeManager(Guid key)
 {
     if (key == Guid.Empty)
     {
         throw new ArgumentException("PerMessageOrExecutionContextLifetimeManagerKeyCannotBeNull");
     }
     _key = key;
     _perMessageContextLifetimeManager   = new PerMessageContextLifetimeManager(key);
     _perExecutionContextLifetimeManager = new PerExecutionContextLifetimeManager(key);
 }
 static PerMessageContextLifetimeManager()
 {
     //EmptyMessageContext = new EmptyMessageContext();
     PerMessageContextLifeTimeManager = new PerMessageContextLifetimeManager();
     IoCFactory.Instance.CurrentContainer.RegisterType <IMessageContext>(PerMessageContextLifeTimeManager);
 }
 static PerMessageContextLifetimeManager()
 {
     //EmptyMessageContext = new EmptyMessageContext();
     PerMessageContextLifeTimeManager = new PerMessageContextLifetimeManager();
     IoCFactory.Instance.CurrentContainer.RegisterType<IMessageContext>(PerMessageContextLifeTimeManager);
 }