Table of Contents

Class NetworkStatus

Namespace
Supabase.Gotrue
Assembly
Supabase.Gotrue.dll

A Network status system to pair with the OnlineClient.

https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/network-info

public class NetworkStatus
Inheritance
NetworkStatus
Inherited Members
Extension Methods

Fields

Ready

True if the network has been checked.

public bool Ready

Field Value

bool

Properties

Client

The Client that this network status system is attached to.

public IGotrueClient<User, Session>? Client { get; set; }

Property Value

IGotrueClient<User, Session>

Methods

AddListener(NetworkListener)

Adds a listener to the network status system.

public void AddListener(NetworkStatus.NetworkListener listener)

Parameters

listener NetworkStatus.NetworkListener

~NetworkStatus()

Removes the network status system checker from the OS.

protected ~NetworkStatus()

PingCheck(string)

Pings the URL in the Options to check if the network is online.

https://PROJECTID.supabase.co/auth/v1/settings

public Task<bool> PingCheck(string url)

Parameters

url string

Returns

Task<bool>

RemoveListener(NetworkListener)

Removes a listener from the network status system.

public void RemoveListener(NetworkStatus.NetworkListener listener)

Parameters

listener NetworkStatus.NetworkListener

StartAsync(string)

Starts the network status system. This will listen to the OS for network changes, and also does a ping check to confirm the current network status.

public Task<bool> StartAsync(string url)

Parameters

url string

Returns

Task<bool>