Ejemplo n.º 1
0
            /// <summary>
            /// プラットフォーム毎のシグナルクラスを作成する
            /// </summary>
            private void GetPlatform()
            {
                m_platform = IsLinux ? ExitSignal_Platform.Linux : ExitSignal_Platform.Windows;
                switch (m_platform)
                {
                case ExitSignal_Platform.Linux:
                case ExitSignal_Platform.Mac:
                {
                    // Linux用シグナルクラスを作成
                    m_platformExitSignal = new UnixExitSignal();
                }
                break;

                case ExitSignal_Platform.Windows:
                {
                    // Windows用シグナルクラスを作成
                    m_platformExitSignal = new WindowsExitSignal();
                }
                break;

                default:
                    Debug.Assert(false);
                    break;
                }
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Windows用コンストラクタ
 /// </summary>
 /// <param name="ctrlTypes"></param>
 public SignalEventArgs(ExitSignal_Platform platform, CtrlTypes ctrlTypes)
 {
     m_platform  = platform;
     m_ctrlTypes = ctrlTypes;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Linux用コンストラクタ
 /// </summary>
 /// <param name="signal">シグナルタイプ</param>
 public SignalEventArgs(ExitSignal_Platform platform, Signal signal)
 {
     m_platform = platform;
     m_signal   = signal;
 }