public OperativeSystem(IIOTerminal terminal, ISystemInformation systemInformation ) { this.terminal = terminal; this.systemInformation = systemInformation; }
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); }
public NightlyShutdownHistoryUpdater( ISystemInformation systemInformation, IShutdownHistoryStorage shutdownHistoryStorage) { this.systemInformation = systemInformation; this.shutdownHistoryStorage = shutdownHistoryStorage; }
public ServiceInformer( ISystemInformation systemInformation, IIOTerminal terminal ) { this.systemInformation = systemInformation; this.terminal = terminal; }
/// <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; }
public ServiceManagerForWindows( IIOTerminal terminal, ISystemInformation systemInformation, IServiceInformer serviceInformer ) { this.terminal = terminal; this.systemInformation = systemInformation; this.serviceInformer = serviceInformer; }
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; }
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; }
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; }
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); }
/// <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) { }