Class SteamFactory
- Namespace
- MarymoorStudios.Core.Steamworks.Rpc
- Assembly
- MarymoorStudios.Core.Steamworks.Rpc.dll
Static factory methods for SteamFactory<TRoot>.
public static class SteamFactory
- Inheritance
-
SteamFactory
- Inherited Members
Methods
Create<TRoot>(SteamFactoryConfig, MemoryPool<byte>, SteamApi, ILoggerFactory, Proxy<TRoot>, CancellationToken)
Creates a new Steam scope for incoming and outgoing connections.
public static Promise<SteamFactory<TRoot>> Create<TRoot>(SteamFactoryConfig config, MemoryPool<byte> pool, SteamApi api, ILoggerFactory loggerFactory, Proxy<TRoot> root, CancellationToken cancel = default) where TRoot : AServer<TRoot>
Parameters
configSteamFactoryConfigThe configuration policy for this Steam scope.
poolMemoryPool<byte>The memory pool from which to allocate memory for network operations.
apiSteamApiThe Steam API.
loggerFactoryILoggerFactoryThe logger factory to log to.
rootProxy<TRoot>The root object to be exposed to all connections (incoming and outgoing).
cancelCancellationTokenCancellation token for the creation process.
Returns
- Promise<SteamFactory<TRoot>>
Type Parameters
TRootThe type of the root object exposed on all connection (incoming and outgoing) within the scope of this factory.