상속: IHawkeyeApplicationInfo
예제 #1
0
파일: Shell.cs 프로젝트: odalet/Hawkeye2
        /// <summary>
        /// Initializes a new instance of the <see cref="Shell"/> class.
        /// </summary>
        public Shell()
        {
            hawkeyeId = Guid.NewGuid();
            ApplicationInfo = new HawkeyeApplicationInfo();

            // Do nothing else here, otherwise, HawkeyeApplication static constructor may fail.
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Shell"/> class.
        /// </summary>
        public Shell()
        {
            hawkeyeId       = Guid.NewGuid();
            ApplicationInfo = new HawkeyeApplicationInfo();

            // Do nothing else here, otherwise, HawkeyeApplication static constructor may fail.
        }
예제 #3
0
        /// <summary>
        /// Initializes the <see cref="HawkeyeApplication"/> class.
        /// </summary>
        static HawkeyeApplication()
        {
            applicationInfo = new HawkeyeApplicationInfo();

            var clrVersion = typeof(int).Assembly.GetName().Version;
            currentClr = clrVersion.Major == 4 ? Clr.Net4 : Clr.Net2;
            currentBitness = IntPtr.Size == 8 ? Bitness.x64 : Bitness.x86;

            Shell = new Shell();
        }
예제 #4
0
        /// <summary>
        /// Initializes the <see cref="HawkeyeApplication"/> class.
        /// </summary>
        static HawkeyeApplication()
        {
            ApplicationInfo = new HawkeyeApplicationInfo();

            var clrVersion = typeof(int).Assembly.GetName().Version;

            CurrentClr     = clrVersion.Major == 4 ? Clr.Net4 : Clr.Net2;
            CurrentBitness = IntPtr.Size == 8 ? Bitness.x64 : Bitness.x86;

            Shell = new Shell();
        }