Skip to content

IGrainContext

interface

Namespace: Orleans.Runtime

Represents a grain from the perspective of the runtime.
public interface IGrainContext : ITargetHolder, IEquatable<IGrainContext>

Properties

  • ActivationId Gets the activation id.
  • ActivationServices Gets the System.IServiceProvider that provides access to the grain activation's service container.
  • Address Gets the activation address.
  • Deactivated Gets the System.Threading.Tasks.Task which completes when the grain has deactivated.
  • GrainId Gets the grain identity.
  • GrainInstance Gets the grain instance, or null if the grain instance has not been set yet.
  • GrainReference Gets a reference to this grain.
  • ObservableLifecycle Gets the observable Grain lifecycle, which can be used to add lifecycle hooks.
  • Scheduler Gets the scheduler.

Methods