Class NetworkConnectionStatusService
Inheritance
NetworkConnectionStatusService
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
_currentConnectionStatus
Declaration
protected NetworkConnectionStatus _currentConnectionStatus
Field Value
_networkHealthHistory
Declaration
protected bool[] _networkHealthHistory
Field Value
_nextCallIndex
Declaration
protected int _nextCallIndex
Field Value
MAX_CALLS_TO_STORE
Declaration
protected const int MAX_CALLS_TO_STORE = 10
Field Value
THRESHOLD
Declaration
protected const float THRESHOLD = 0.75F
Field Value
Properties
CurrentConnectionStatus
Declaration
public NetworkConnectionStatus CurrentConnectionStatus { get; }
Property Value
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
IService