14.1 Beta 1 SDK
IPluginCredentialStore14.1 Beta
public interface Unbroken.LaunchBox.Plugins.Connections.IPluginCredentialStoreProvides protected, package-scoped connection storage through constructor injection.
Remarks
Components in one managed package share records and notifications. Owner/connection handles are compared ordinally ignoring case; opaque value names are ordinal. These are not service account or game identities. Plugins coordinate their own refresh and client caches. Unreadable data fails without overwriting credentials. Unsubscribe event handlers when disposing a component. No cross-package storage access is provided.Methods
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection>> GetConnectionsAsync(string ownerId, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task<string?> GetValueAsync(string ownerId, string connectionId, string name, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task RemoveConnectionAsync(string ownerId, string connectionId, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task SaveConnectionAsync(Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection connection, System.Collections.Generic.IReadOnlyDictionary<string, string?> values, System.Threading.CancellationToken cancellationToken)
GetConnectionsAsync 14.1 Beta
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection>> GetConnectionsAsync(string ownerId, System.Threading.CancellationToken cancellationToken)GetValueAsync 14.1 Beta
System.Threading.Tasks.Task<string?> GetValueAsync(string ownerId, string connectionId, string name, System.Threading.CancellationToken cancellationToken)RemoveConnectionAsync 14.1 Beta
System.Threading.Tasks.Task RemoveConnectionAsync(string ownerId, string connectionId, System.Threading.CancellationToken cancellationToken)SaveConnectionAsync 14.1 Beta
System.Threading.Tasks.Task SaveConnectionAsync(Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection connection, System.Collections.Generic.IReadOnlyDictionary<string, string?> values, System.Threading.CancellationToken cancellationToken)Saves a descriptor and applies partial changes atomically with other host credential-store writes.
connection14.1 Beta- The descriptor to save.
values14.1 Beta- A non-null value adds or replaces its named value, a
nullvalue removes it, and an omitted name preserves its existing value.
cancellationToken14.1 Beta- Cancels the operation; completed writes are not rolled back.
Returns
Completion of protected persistence.Events
CredentialsChanged 14.1 Beta
event System.EventHandler<Unbroken.LaunchBox.Plugins.Connections.PluginCredentialsChangedEventArgs>? CredentialsChangedSignals a successful record change in this process; reload state instead of relying on exactly-once delivery.