Example #1
0
        /// <summary>
        ///     Construct the application.
        /// </summary>
        public Application( IEventHandlingStrategy eventHandlingStrategy )
        {
            // Event Handling Strategy cannot be null
            if( null == eventHandlingStrategy ) {
                throw new ArgumentNullException( "eventHandlingStrategy" );
            }

            ApplicationEventHandler = eventHandlingStrategy;

            Destroyed = false;
        }
Example #2
0
        /// <summary>
        ///   Construct the application.
        /// </summary>
        public Application(IEventHandlingStrategy eventHandlingStrategy)
        {
            // Event Handling Strategy cannot be null
            if (null == eventHandlingStrategy)
            {
                throw new ArgumentNullException("eventHandlingStrategy");
            }

            ApplicationEventHandler = eventHandlingStrategy;

            Destroyed = false;
        }
Example #3
0
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication( IEventHandlingStrategy eventHandlingStrategy )
     : base(eventHandlingStrategy)
 {
 }
Example #4
0
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication(IEventHandlingStrategy eventHandlingStrategy) : base(eventHandlingStrategy)
 {
 }