Esempio n. 1
0
 public OperativeSystem(IIOTerminal terminal,
                        ISystemInformation systemInformation
                        )
 {
     this.terminal          = terminal;
     this.systemInformation = systemInformation;
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            IHardwareInfoFactory      factory = HardwareInfo.GetFactory();
            ISystemInformationFactory systemInformationFactory = SysInfo.GetFactory();

            CPUInfo            cpuInfo = factory.GetCPUInfo();
            ISystemInformation sysInfo = systemInformationFactory.Information();

            Console.WriteLine("Operation system: " + sysInfo.Name);
            Console.WriteLine("ID:               " + sysInfo.ID);
            Console.WriteLine("Based on:         " + sysInfo.IDLike);
            Console.WriteLine("Platform:         " + sysInfo.Platform);
            Console.WriteLine("-------------------------------------");
            Console.WriteLine("CPU info");
            Console.WriteLine("    - name:               " + cpuInfo.ModelName);
            Console.WriteLine("    - vendor:             " + cpuInfo.Vendor);
            Console.WriteLine("    - vendor id:          " + cpuInfo.VendorID);
            Console.WriteLine("    - CPU(s):             " + cpuInfo.CPUCount);
            Console.WriteLine("    - Thread(s) per core: " + cpuInfo.ThreadsPerCore);
            Console.WriteLine("    - Core(s) per socket: " + cpuInfo.CoresPerSocket);
            // Console.WriteLine("    - identifier:   " + cpuInfo.Identifier);
            Console.WriteLine("    - MHz:                " + cpuInfo.MHz);
            Console.WriteLine("    - Cache");
            Console.WriteLine("        - level 1:  " + cpuInfo.CacheLevel1);
            Console.WriteLine("        - level 2:  " + cpuInfo.CacheLevel2);
            Console.WriteLine("        - level 3:  " + cpuInfo.CacheLevel3);
            Console.WriteLine("    - Flags: " + cpuInfo.Flags);
        }
Esempio n. 3
0
 public NightlyShutdownHistoryUpdater(
     ISystemInformation systemInformation,
     IShutdownHistoryStorage shutdownHistoryStorage)
 {
     this.systemInformation      = systemInformation;
     this.shutdownHistoryStorage = shutdownHistoryStorage;
 }
Esempio n. 4
0
 public ServiceInformer(
     ISystemInformation systemInformation,
     IIOTerminal terminal
     )
 {
     this.systemInformation = systemInformation;
     this.terminal          = terminal;
 }
Esempio n. 5
0
        /// <summary>
        /// Initializes a new instance of the PushNotificationRegistry class.
        /// </summary>
        /// <param name="notificationServerRegistration">Handlers registering push notification tokens with a remote server.</param>
        /// <param name="systemInformation">An object that provides information about the current system.</param>
        protected PushNotificationRegistry(IPushNotificationServerRegistration notificationServerRegistration, ISystemInformation systemInformation)
        {
            Throw.IfArgumentNull(notificationServerRegistration, nameof(notificationServerRegistration));
            Throw.IfArgumentNull(systemInformation, nameof(systemInformation));

            this.notificationServerRegistration = notificationServerRegistration;
            this.systemInformation = systemInformation;
        }
Esempio n. 6
0
 public ServiceManagerForWindows(
     IIOTerminal terminal,
     ISystemInformation systemInformation,
     IServiceInformer serviceInformer
     )
 {
     this.terminal          = terminal;
     this.systemInformation = systemInformation;
     this.serviceInformer   = serviceInformer;
 }
Esempio n. 7
0
 public SearchTicketsForm()
 {
     logger.logMessage("Form Loading", LogLevel.debug);
     InitializeComponent();
     ScannerTabPage.BackColor = Color.LightGreen;
     this.ActiveControl       = SimpleTicketNumberTextBox;
     currentSystemInformation = new CurrentSysInfo();
     logger.logMessage("Ready for action", LogLevel.debug);
     SimpleTicketNumberTextBox.KeyDown += new KeyEventHandler(tb_KeyDown);
     UIUpdateTimer.Enabled              = true;
 }
Esempio n. 8
0
 public ServiceManager(
     IIOTerminal terminal,
     ISystemInformation systemInformation,
     IServiceInformer serviceInformer,
     IServiceManagerFactory serviceManagerFactory
     )
 {
     this.terminal              = terminal;
     this.systemInformation     = systemInformation;
     this.serviceInformer       = serviceInformer;
     this.serviceManagerFactory = serviceManagerFactory;
 }
 public GetCapabilitiesInteractor(IFhirRepository repository, ISystemInformation systemInformation)
 {
     this.Repository        = repository;
     this.SystemInformation = systemInformation;
 }
Esempio n. 10
0
 public void Setup()
 {
     _exec = MockRepository.GenerateMock <IExecutableProcessQueue>();
     _operatingSystemChecker = MockRepository.GenerateMock <IOperatingSystemChecker>();
     _systemInformation      = MockRepository.GenerateMock <ISystemInformation>();
 }
 public void Setup()
 {
     _exec = MockRepository.GenerateMock<IExecutableProcessQueue>();
     _operatingSystemChecker = MockRepository.GenerateMock<IOperatingSystemChecker>();
     _systemInformation = MockRepository.GenerateMock<ISystemInformation>();
 }
 public Unrescue(IExecutableProcessQueue exec, IOperatingSystemChecker operatingSystemChecker, ISystemInformation systemInformation)
 {
     _exec = exec;
     _operatingSystemChecker = operatingSystemChecker;
     _systemInformation      = systemInformation;
 }
Esempio n. 13
0
 public ScannedTicket(string ticketNumber, ISystemInformation sysInformation)
 {
     ScannedBy    = sysInformation.GetMachineName();
     ScannedAt    = sysInformation.GetCurrentDateTime();
     TicketNumber = ticketNumber;
 }
 private void SystemInformationCommandReceived(ISystemInformation command)
 {
     StudioContext.LogInformation("Command station {0} ver {1}", command.SystemName, command.SystemVersion);
 }
 public Unrescue(IExecutableProcessQueue exec, IOperatingSystemChecker operatingSystemChecker, ISystemInformation systemInformation)
 {
     _exec = exec;
     _operatingSystemChecker = operatingSystemChecker;
     _systemInformation = systemInformation;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the iOSPushNotificationRegistry class.
 /// </summary>
 /// <param name="notificationServerRegistration">Handlers registering push notification tokens with a remote server.</param>
 /// <param name="systemInformation">An object that provides information about the current system.</param>
 public iOSPushNotificationRegistry(IPushNotificationServerRegistration notificationServerRegistration, ISystemInformation systemInformation)
     : base(notificationServerRegistration, systemInformation)
 {
 }