Table of Contents

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

config SteamFactoryConfig

The configuration policy for this Steam scope.

pool MemoryPool<byte>

The memory pool from which to allocate memory for network operations.

api SteamApi

The Steam API.

loggerFactory ILoggerFactory

The logger factory to log to.

root Proxy<TRoot>

The root object to be exposed to all connections (incoming and outgoing).

cancel CancellationToken

Cancellation token for the creation process.

Returns

Promise<SteamFactory<TRoot>>

Type Parameters

TRoot

The type of the root object exposed on all connection (incoming and outgoing) within the scope of this factory.