Sites

Menu

SpatialOSConnectionHandlerBuilder Class

Namespace: Improbable.Gdk.Core
GDK package: Core
Source

Inheritance

Improbable.Gdk.Core.IConnectionHandlerBuilder


Properties

WorkerType Source
string WorkerType { get; }


Methods

SetConnectionFlow Source
SpatialOSConnectionHandlerBuilder SetConnectionFlow(IConnectionFlow flow)

Sets the connection flow implementation to use when creating the underlying SpatialOS connection.

Returns:
Itself

Parameters
SetThreadingMode Source
SpatialOSConnectionHandlerBuilder SetThreadingMode(ThreadingMode mode)

Sets the threading mode for the resultant IConnectionHandler.

Returns:
Itself

Parameters
  • ThreadingMode mode : The desired threading mode.
SetConnectionParameters Source
SpatialOSConnectionHandlerBuilder SetConnectionParameters(ConnectionParameters parameters)

Sets the connection parameters to use for the underlying SpatialOS connection.

Returns:
Itself

Parameters
  • ConnectionParameters parameters : The connection parameters to use.
CreateAsync Source
async Task<IConnectionHandler> CreateAsync(CancellationToken? token = null)

Creates a IConnectionHandler asynchronously.

Returns:
A task that represents the asynchronous creation of the connection handler object.

Parameters
  • CancellationToken? token : A cancellation token which should cancel the underlying connection attempt.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums