コード例 #1
0
ファイル: Application.cs プロジェクト: oliversalzburg/omniudp
        /// <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;
        }
コード例 #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;
        }
コード例 #3
0
ファイル: DemoApplication.cs プロジェクト: hartwig-at/omniudp
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication( IEventHandlingStrategy eventHandlingStrategy )
     : base(eventHandlingStrategy)
 {
 }
コード例 #4
0
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication(IEventHandlingStrategy eventHandlingStrategy) : base(eventHandlingStrategy)
 {
 }