コード例 #1
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);
 }
コード例 #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);
 }
コード例 #3
0
 static PerMessageContextLifetimeManager()
 {
     //EmptyMessageContext = new EmptyMessageContext();
     PerMessageContextLifeTimeManager = new PerMessageContextLifetimeManager();
     IoCFactory.Instance.CurrentContainer.RegisterType <IMessageContext>(PerMessageContextLifeTimeManager);
 }
コード例 #4
0
 static PerMessageContextLifetimeManager()
 {
     //EmptyMessageContext = new EmptyMessageContext();
     PerMessageContextLifeTimeManager = new PerMessageContextLifetimeManager();
     IoCFactory.Instance.CurrentContainer.RegisterType<IMessageContext>(PerMessageContextLifeTimeManager);
 }