Show / Hide Table of Contents

Interface IInternetConnectivityMonitor

Sledovač internetového pripojenia.

Namespace: NineDigit.eKasa
Assembly: NineDigit.eKasa.dll
Syntax
public interface IInternetConnectivityMonitor

Methods

GetStateAsync(CancellationToken)

Získa stav spojenia.

Declaration
Task<InternetConnectionStateInfo> GetStateAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<InternetConnectionStateInfo>

Stav internetového spojenia.

Monitor(Action<InternetConnectionStateChange>)

Zahlási sa na odber zmien stavu internetového pripojenia.

Declaration
IDisposable Monitor(Action<InternetConnectionStateChange> stateChangeHandler)
Parameters
Type Name Description
System.Action<InternetConnectionStateChange> stateChangeHandler
Returns
Type Description
System.IDisposable

Token, slúžiaci na odhlásenie odberu

Exceptions
Type Condition
System.ObjectDisposedException

Monitor(EventHandler<InternetConnectionStateChange>)

Zahlási sa na odber zmien stavu internetového pripojenia.

Declaration
IDisposable Monitor(EventHandler<InternetConnectionStateChange> stateChangeHandler)
Parameters
Type Name Description
System.EventHandler<InternetConnectionStateChange> stateChangeHandler
Returns
Type Description
System.IDisposable

Token, slúžiaci na odhlásenie odberu

Exceptions
Type Condition
System.ObjectDisposedException

Events

Disposed

Indikácia zlikvidovania objektu.

Declaration
event EventHandler Disposed
Event Type
Type Description
System.EventHandler
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©