Vixen
caa30e12
csharp
public sealed class InstanceGrain

One saved instance, keyed by its own guid.

Read the guide page for this →

Methods (5)

  • public Task<InstanceRecord> Read()

    What it looks like.

  • public Task<InstanceOutcome> Open(string instance, string difficulty, ImmutableArray<PlayerKey> roster, int capacity, DateTimeOffset now, DateTimeOffset expires)

    Opens it.

  • public Task<InstanceOutcome> Bind(PlayerKey player, DateTimeOffset now)

    Saves somebody to it.

  • public Task<InstanceOutcome> Defeat(string encounter, DateTimeOffset now)

    Records that something is dead.

  • public Task<InstanceOutcome> Close()

    Ends it early — a disband, a reset, an operator.