Пример #1
0
		/*----------------------------------------------------------------------------------------*/
		/// <summary>
		/// Registers the specified behavior with the module. When the request ends, the behavior's
		/// isntances will be cleaned up.
		/// </summary>
		/// <param name="behavior">The behavior in question.</param>
		public static void Register(OnePerRequestBehavior behavior)
		{
			GetListOfBehaviors().Add(behavior);
		}
Пример #2
0
 /*----------------------------------------------------------------------------------------*/
 /// <summary>
 /// Registers the specified behavior with the module. When the request ends, the behavior's
 /// isntances will be cleaned up.
 /// </summary>
 /// <param name="behavior">The behavior in question.</param>
 public static void Register(OnePerRequestBehavior behavior)
 {
     GetListOfBehaviors().Add(behavior);
 }