Show / Hide Table of Contents

    Interface IConnectionStatusService

    A service intended for monitoring IdleKit's backend server connection status. The service works by evaluating the results of a number of recent chose backend service network requests to determine the health of the connection.

    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IConnectionStatusService : IService

    Properties

    CurrentConnectionStatus

    Returns the current status of the connection at the given moment, which is set dynamically by evaluating it after every backend request.

    Declaration
    NetworkConnectionStatus CurrentConnectionStatus { get; }
    Property Value
    Type Description
    NetworkConnectionStatus

    Methods

    CheckAverageConnection()

    Runs the calculation on the collected data to determine current network status based on the average of the results of recent network calls.

    Declaration
    void CheckAverageConnection()

    OnNetworkCallResultReceived(Boolean)

    Acts as a callback for every successful or failed backend request inside of IdleKit to aggregate the average success rate of network calls.

    Declaration
    void OnNetworkCallResultReceived(bool isCallSuccessful)
    Parameters
    Type Name Description
    Boolean isCallSuccessful
    Back to top Copyright © 2020 East Side Games Inc.