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
serviceProviderIServiceProvidersystemConfigIConfigurationloggerILogger<HomebaseConnector>lifetimeIRpcConnectionLifetimeeventDispatcherEventDispatcher
Properties
Enabled
public bool Enabled { get; }
Property Value
Methods
ConnectAsync(CancellationToken)
public Task<bool> ConnectAsync(CancellationToken token = default)
Parameters
tokenCancellationToken
Returns
PingAsync(CancellationToken)
Attempts a handshake with a remote connection.
public Task<bool> PingAsync(CancellationToken token = default)
Parameters
tokenCancellationToken
Returns
SendPing(CancellationToken)
[RpcSend("Uncreated.Web.Unturned.RpcConnectionService, uncreated-web", "ReceivePing")]
[RpcTimeout(3000)]
protected RpcTask SendPing(CancellationToken token)
Parameters
tokenCancellationToken
Returns
- RpcTask
StartAsync(CancellationToken)
Executes at module startup.
public UniTask StartAsync(CancellationToken token)
Parameters
tokenCancellationToken
Returns
- UniTask
StopAsync(CancellationToken)
Executes at module shutdown.
public UniTask StopAsync(CancellationToken token)
Parameters
tokenCancellationToken
Returns
- UniTask