Class AchievementSyncServices
The collaborators one Achievement Platform Sync window works through, composed once: the editor session state the sign-in survives a reload in, the wire-trace settings, the connector catalog and the session lifecycle built on them, and the QR sign-in client and token minter that come from the sign-in factory. CreateForEditor() is the composition edge that supplies the real session state and the connector source providers found by type; everything below it receives what it needs through a constructor.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor.Sync
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public sealed class AchievementSyncServices
Constructors
AchievementSyncServices(IEditorSessionStateStore, SteamWireTraceSettings, IEnumerable<IAchievementSyncConnectorSource>, ISteamPartnerSignInClientFactory)
Composes the services from the pieces a test replaces.
Declaration
public AchievementSyncServices(IEditorSessionStateStore sessionState, SteamWireTraceSettings traceSettings, IEnumerable<IAchievementSyncConnectorSource> connectorSources, ISteamPartnerSignInClientFactory signInClients)
Parameters
| Type | Name | Description |
|---|---|---|
| IEditorSessionStateStore | sessionState | Where the sign-in, the connection identity and the typed credentials survive a reload. |
| SteamWireTraceSettings | traceSettings | The wire-trace switch and file, persisted through |
| IEnumerable<IAchievementSyncConnectorSource> | connectorSources | The sources the storefront connectors come from, one per wired storefront. |
| ISteamPartnerSignInClientFactory | signInClients | The factory the QR sign-in client and the partner-site token minter come from. |
Properties
Connectors
Which storefronts can build a live connector, and how.
Declaration
public AchievementSyncConnectorCatalog Connectors { get; }
Property Value
| Type | Description |
|---|---|
| AchievementSyncConnectorCatalog |
PartnerTokenMinter
The minter that turns the sign-in token into partner-site cookies.
Declaration
public ISteamPartnerTokenMinter PartnerTokenMinter { get; }
Property Value
| Type | Description |
|---|---|
| ISteamPartnerTokenMinter |
QrSignInClient
The client that starts and polls the Steam QR sign-in.
Declaration
public ISteamQrSignInClient QrSignInClient { get; }
Property Value
| Type | Description |
|---|---|
| ISteamQrSignInClient |
TraceSettings
The wire-trace switch and file.
Declaration
public SteamWireTraceSettings TraceSettings { get; }
Property Value
| Type | Description |
|---|---|
| SteamWireTraceSettings |
Methods
CreateForEditor()
The composition edge: the real editor session state and the connector source providers found by type.
Declaration
public static AchievementSyncServices CreateForEditor()
Returns
| Type | Description |
|---|---|
| AchievementSyncServices |
CreateSession()
A fresh wizard session whose Steam sign-in mirrors into this window's session state.
Declaration
public AchievementSyncWizardSession CreateSession()
Returns
| Type | Description |
|---|---|
| AchievementSyncWizardSession |