Interface IAchievementSyncConnectorSourceProvider
How a storefront plugs its connector into the Achievement Platform Sync wizard: the editor finds every implementation by type and asks it for its IAchievementSyncConnectorSource.
Namespace: Serenity.Achievements.Infrastructure.Editor.Sync
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public interface IAchievementSyncConnectorSourceProvider
Remarks
An implementation needs a public parameterless constructor and must hold no state, because discovery creates one instance per type and shares it across windows; anything a source needs comes from the AchievementSyncConnectorSourceContext passed to CreateSource(AchievementSyncConnectorSourceContext). Implementations declared in a test assembly are never discovered. Construction and CreateSource(AchievementSyncConnectorSourceContext) must not throw: a faulty provider stops the window from composing, Steam included.
Methods
CreateSource(AchievementSyncConnectorSourceContext)
Creates the connector source this provider contributes to one window.
Declaration
IAchievementSyncConnectorSource CreateSource(AchievementSyncConnectorSourceContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementSyncConnectorSourceContext | context | What the window supplies to its providers; never null. |
Returns
| Type | Description |
|---|---|
| IAchievementSyncConnectorSource | The source of the storefront this provider contributes, never null. |