Class SteamEditorComposition
The one door through which an editor tool obtains the real Steam session, the trace settings of an editor session store, the traced HTTP transport and the sign-in factory, since the concrete session is internal.
Inherited Members
Namespace: Serenity.Steam.Infrastructure.Editor
Assembly: Serenity.UnitySteam.Infrastructure.Editor.dll
Syntax
public static class SteamEditorComposition
Methods
CreateSession(IEditorSessionStateStore)
A Steam session whose cookies and sign-in token mirror into sessionState.
Declaration
public static ISteamPartnerSession CreateSession(IEditorSessionStateStore sessionState)
Parameters
| Type | Name | Description |
|---|---|---|
| IEditorSessionStateStore | sessionState | Where the sign-in survives a domain reload. |
Returns
| Type | Description |
|---|---|
| ISteamPartnerSession |
CreateSignInClientFactory(SteamHttpTransport)
The sign-in factory over transport, so one traced transport can serve several factories.
Declaration
public static ISteamPartnerSignInClientFactory CreateSignInClientFactory(SteamHttpTransport transport)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamHttpTransport | transport | The traced HTTP seam the sign-in clients send through. |
Returns
| Type | Description |
|---|---|
| ISteamPartnerSignInClientFactory |
CreateTransport(SteamWireTraceSettings)
The HTTP seam an editor tool uses: the shared HTTP client, traced through traceSettings.
Declaration
public static SteamHttpTransport CreateTransport(SteamWireTraceSettings traceSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamWireTraceSettings | traceSettings | The wire-trace settings, owning the switch and the trace file. |
Returns
| Type | Description |
|---|---|
| SteamHttpTransport |
TraceSettingsFor(IEditorSessionStateStore)
The wire-trace settings of sessionState: the same instance for the same store.
Declaration
public static SteamWireTraceSettings TraceSettingsFor(IEditorSessionStateStore sessionState)
Parameters
| Type | Name | Description |
|---|---|---|
| IEditorSessionStateStore | sessionState | The editor session store the trace switch persists through. |
Returns
| Type | Description |
|---|---|
| SteamWireTraceSettings |