Esempio n. 1
0
 public HostLoadChangedEventArgs(HostLoad hostLoad) {
     HostLoad = hostLoad;
 }
Esempio n. 2
0
        private void OnHostLoadChanged(HostLoad hostLoad) {
            Interlocked.Exchange(ref _hostLoad, hostLoad);

            IsConnected = hostLoad != null;
            var args = new HostLoadChangedEventArgs(hostLoad ?? new HostLoad());
            Task.Run(() => HostLoadChanged?.Invoke(this, args)).DoNotWait();
        }