Show / Hide Table of Contents

Interface IInternetConnectivityMonitor

Sledovač internetového pripojenia.

Namespace: NineDigiteKasa
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
CancellationToken cancellationToken
Returns
Type Description
TaskInternetConnectionStateInfo

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
ActionInternetConnectionStateChange stateChangeHandler
Returns
Type Description
IDisposable

Token, slúžiaci na odhlásenie odberu

Exceptions
Type Condition
ObjectDisposedException

Monitor(EventHandler<InternetConnectionStateChange>)

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

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

Token, slúžiaci na odhlásenie odberu

Exceptions
Type Condition
ObjectDisposedException

Events

Disposed

Indikácia zlikvidovania objektu.

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