public static Density operator /(Mass leftHandSide, Volume rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Density(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static TSource SingleOfType <TSource>(this IEnumerable source, Func <TSource, bool> predicate) { ArgumentMust.NotBeNull(() => source); ArgumentMust.NotBeNull(() => predicate); return(source.OfType <TSource>().Single(predicate)); }
public RamViewModel(SampleMessenger messenger, RamSampleProviderService ramSampleProviderService) { ArgumentMust.NotBeNull(() => messenger); ArgumentMust.NotBeNull(() => messenger); messenger.SubscribeTo(this); }
public static Volume operator *(Area leftHandSide, Length rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Volume(leftHandSide.ValueInBaseUnit * rightHandSide.ValueInBaseUnit)); }
public static bool None <T>(this IEnumerable <T> source, Func <T, bool> predicate) { ArgumentMust.NotBeNull(() => source); ArgumentMust.NotBeNull(() => predicate); return(EnumerablePredicates.None(source, predicate)); }
public static Power operator /(Energy leftHandSide, Time rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Power(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static Power operator *(Area leftHandSide, Intensity rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(rightHandSide * leftHandSide); }
public CpuSample( string name, Frequency clockSpeed, Frequency busSpeed, TotalUsage totalUsage, Temperature packageTemperature, IEnumerable <LogicalCore> cores, IEnumerable <Temperature> temperatures) { ArgumentMust.NotBeNullOrWhitespace(() => name); ArgumentMust.NotBeNull(() => clockSpeed); ArgumentMust.NotBeNull(() => busSpeed); ArgumentMust.NotBeNull(() => totalUsage); ArgumentMust.NotBeNull(() => packageTemperature); ArgumentMust.NotBeNullOrEmpty(() => cores); ArgumentMust.NotBeNullOrEmpty(() => temperatures); Name = name; ClockSpeed = clockSpeed; BusSpeed = busSpeed; TotalUsage = totalUsage; PackageTemperature = packageTemperature; Cores = cores; Temperatures = temperatures; }
public void Load(IEnumerable <IIoCModule> modules) { ArgumentMust.NotBeNull(() => modules); ArgumentMust.NotContainNull(() => modules); modules.ForEach(module => module.Load()); }
public static Force operator *(Acceleration leftHandSide, Mass rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(rightHandSide * leftHandSide); }
public static Force operator *(Mass leftHandSide, Acceleration rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Force(leftHandSide.ValueInBaseUnit * rightHandSide.ValueInBaseUnit)); }
public static Volume operator *(Length leftHandSide, Area rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(rightHandSide * leftHandSide); }
public static Energy operator *(Time leftHandSide, Power rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(rightHandSide * leftHandSide); }
public MainPageViewModel( CoresViewModel coresViewModel, CpuViewModel cpuViewModel, RamViewModel ramViewModel, GpuViewModel gpuViewModel, GpuClocksViewModel gpuClocksViewModel, VRamViewModel vRamViewModel, GpuLoadsViewModel gpuLoadsViewModel, SettingsViewModel settingsViewModel) { ArgumentMust.NotBeNull(() => coresViewModel); ArgumentMust.NotBeNull(() => cpuViewModel); ArgumentMust.NotBeNull(() => ramViewModel); ArgumentMust.NotBeNull(() => gpuViewModel); ArgumentMust.NotBeNull(() => gpuClocksViewModel); ArgumentMust.NotBeNull(() => vRamViewModel); ArgumentMust.NotBeNull(() => gpuLoadsViewModel); ArgumentMust.NotBeNull(() => settingsViewModel); CoresViewModel = coresViewModel; CpuViewModel = cpuViewModel; RamViewModel = ramViewModel; GpuViewModel = gpuViewModel; GpuClocksViewModel = gpuClocksViewModel; VRamViewModel = vRamViewModel; GpuLoadsViewModel = gpuLoadsViewModel; SettingsViewModel = settingsViewModel; }
public static Power operator *(Intensity leftHandSide, Area rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Power(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
protected PhysicalQuantity(double value, Unit <TPhysicalQuantity> unit) { ArgumentMust.NotBeNull(() => unit); Value = value; Unit = unit; }
public static Acceleration operator /(Force leftHandSide, Mass rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Acceleration(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static Energy operator *(Power leftHandSide, Time rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Energy(leftHandSide.ValueInBaseUnit * rightHandSide.ValueInBaseUnit)); }
public static Area operator *(Length leftHandSide, Length rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Area(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static Length operator /(Area leftHandSide, Length rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Length(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static Velocity operator /(Length leftHandSide, Time rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Velocity(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public static Velocity operator *(Time leftHandSide, Acceleration rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(rightHandSide * leftHandSide); }
public static Area operator /(Power leftHandSide, Intensity rightHandSide) { ArgumentMust.NotBeNull(() => leftHandSide); ArgumentMust.NotBeNull(() => rightHandSide); return(new Area(leftHandSide.ValueInBaseUnit / rightHandSide.ValueInBaseUnit)); }
public async void OnMessageReceived(SamplesShouldBeAcquired message) { ArgumentMust.NotBeNull(() => message); var sample = await Client.GetGpuSampleAsync(); Messenger.Post(new GpuSampleAcquired(sample)); }
public CpuSampleTimerService(SampleMessenger sampleMessenger) { ArgumentMust.NotBeNull(() => sampleMessenger); _sampleMessenger = sampleMessenger; SetupTimer(); }
public SyncCommand(Action executionAction, Func <bool> canExecuteFunc) { ArgumentMust.NotBeNull(() => executionAction); ArgumentMust.NotBeNull(() => canExecuteFunc); _executionAction = executionAction; _canExecuteFunc = canExecuteFunc; }
public void OnMessageReceived(GpuSampleAcquired message) { ArgumentMust.NotBeNull(() => message); GpuLoad.Value = message.GpuSample.GpuLoads.CoreLoad.In <Percent>().Value; McuLoad.Value = message.GpuSample.GpuLoads.MemoryControllerLoad.In <Percent>().Value; VideoEngineLoad.Value = message.GpuSample.GpuLoads.VideoEngineLoad.In <Percent>().Value; }
public void OnMessageReceived(GpuSampleAcquired message) { ArgumentMust.NotBeNull(() => message); CoreClock.Value = message.GpuSample.GpuClocks.CoreClock.In <GigaHertz>().Value; MemoryClock.Value = message.GpuSample.GpuClocks.MemoryClock.In <GigaHertz>().Value; ShaderClock.Value = message.GpuSample.GpuClocks.ShaderClock.In <GigaHertz>().Value; }
public AsyncCommand(Func <Task> executionFunc, Func <bool> canExecuteFunc) { ArgumentMust.NotBeNull(() => executionFunc); ArgumentMust.NotBeNull(() => canExecuteFunc); _executionFunc = executionFunc; _canExecuteFunc = canExecuteFunc; }
public ConnectionSettingsService(ConnectionMessenger messenger) { ArgumentMust.NotBeNull(() => messenger); _messenger = messenger; ServerName = new ServerName(); }