Show / Hide Table of Contents

    Class NetworkConnectionStatusService

    Inheritance
    Object
    NetworkConnectionStatusService
    Implements
    IConnectionStatusService
    IService
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class NetworkConnectionStatusService : ServiceBase, IConnectionStatusService, IService

    Fields

    _actionService

    Declaration
    protected IActionService _actionService
    Field Value
    Type Description
    IActionService

    _beamable

    Declaration
    protected Beamable _beamable
    Field Value
    Type Description
    Beamable

    _currentConnectionStatus

    Declaration
    protected NetworkConnectionStatus _currentConnectionStatus
    Field Value
    Type Description
    NetworkConnectionStatus

    _networkHealthHistory

    Declaration
    protected bool[] _networkHealthHistory
    Field Value
    Type Description
    Boolean[]

    _nextCallIndex

    Declaration
    protected int _nextCallIndex
    Field Value
    Type Description
    Int32

    MAX_CALLS_TO_STORE

    Declaration
    protected const int MAX_CALLS_TO_STORE = 10
    Field Value
    Type Description
    Int32

    THRESHOLD

    Declaration
    protected const float THRESHOLD = 0.75F
    Field Value
    Type Description
    Single

    Properties

    CurrentConnectionStatus

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

    Methods

    CheckAndDispatchAction(Boolean)

    Declaration
    protected virtual void CheckAndDispatchAction(bool status)
    Parameters
    Type Name Description
    Boolean status

    CheckAverageConnection()

    Declaration
    public virtual void CheckAverageConnection()

    CleanupService()

    Declaration
    protected override void CleanupService()

    InitializeService()

    Declaration
    protected override void InitializeService()

    Inject(IResolver)

    Declaration
    public override void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    OnConnectivityStatusChanged(Boolean)

    Declaration
    protected virtual void OnConnectivityStatusChanged(bool connectionActive)
    Parameters
    Type Name Description
    Boolean connectionActive

    OnNetworkCallResultReceived(Boolean)

    Declaration
    public virtual void OnNetworkCallResultReceived(bool isCallSuccessful)
    Parameters
    Type Name Description
    Boolean isCallSuccessful

    Implements

    IConnectionStatusService
    IService
    Back to top Copyright © 2020 East Side Games Inc.