Table of Contents

Class HomebaseConnector

Namespace
Uncreated.Warfare.Networking
Assembly
Uncreated.Warfare.dll
[GenerateRpcSource]
[Priority(100)]
[RpcGeneratedProxyType(TypeSetupMethodName = "__ModularRpcsGeneratedSetupStaticGeneratedProxy")]
public class HomebaseConnector : IHostedService
Inheritance
HomebaseConnector
Implements
Inherited Members

Constructors

HomebaseConnector(IServiceProvider, IConfiguration, ILogger<HomebaseConnector>, IRpcConnectionLifetime, EventDispatcher)

public HomebaseConnector(IServiceProvider serviceProvider, IConfiguration systemConfig, ILogger<HomebaseConnector> logger, IRpcConnectionLifetime lifetime, EventDispatcher eventDispatcher)

Parameters

serviceProvider IServiceProvider
systemConfig IConfiguration
logger ILogger<HomebaseConnector>
lifetime IRpcConnectionLifetime
eventDispatcher EventDispatcher

Properties

Enabled

public bool Enabled { get; }

Property Value

bool

Methods

ConnectAsync(CancellationToken)

public Task<bool> ConnectAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

Task<bool>

PingAsync(CancellationToken)

Attempts a handshake with a remote connection.

public Task<bool> PingAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

Task<bool>

SendPing(CancellationToken)

[RpcSend("Uncreated.Web.Unturned.RpcConnectionService, uncreated-web", "ReceivePing")]
[RpcTimeout(3000)]
protected RpcTask SendPing(CancellationToken token)

Parameters

token CancellationToken

Returns

RpcTask

StartAsync(CancellationToken)

Executes at module startup.

public UniTask StartAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask

StopAsync(CancellationToken)

Executes at module shutdown.

public UniTask StopAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask