Snapshots API Extension
This extension provides the ability to take part in the OpenFin snapshot process.
To use the extenstion you will firstly need to reference the OpenFin.Net.Adapter.Extensions.Snapshots package from NuGet.
You will then need to activate the extension as part of the runtime builder process by adding the UseSnapshotSource call.
IRuntime runtime = new RuntimeFactory()
.UseSnapshotSource()
.GetRuntimeInstance(new RuntimeOptions
{
Version = "stable",
UUID = "your-uuid",
LicenseKey = "your-license-key"
});
To access the api you should query the runtime for ISnapshotSource.
For example
var snapshotSource = runtime.GetService<ISnapshotSource>();
snapshotSourceClient = await snapshotSourceService.CreateSnapshotSourceClientAsync<JsonObject>(platformUUID);
snapshot = await snapshotSourceClient.GetSnapshotAsync();