GrainService Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for implementing a grain-like partitioned service with per silo instances of it automatically instantiated and started by silo runtime
public abstract class GrainService : Orleans.Runtime.SystemTarget, Orleans.Services.IGrainService
type GrainService = class
inherit SystemTarget
interface IGrainService
interface ISystemTarget
interface IAddressable
Public MustInherit Class GrainService
Inherits SystemTarget
Implements IGrainService
- Inheritance
- Implements
Grain |
Only to make Reflection happy. Do not use it in your implementation |
Grain |
Constructor to use for grain services |
Grain |
Constructor to use for grain services |
Grain |
Constructor to use for grain services |
Activation |
Gets the IServiceProvider that provides access to the grain activation's service container. (Inherited from SystemTarget) |
Config |
Configuration of service |
Deactivated |
Gets the Task which completes when the grain has deactivated. (Inherited from SystemTarget) |
Grain |
Gets the grain identity. (Inherited from SystemTarget) |
Grain |
Gets a reference to this grain. (Inherited from SystemTarget) |
Is |
(Inherited from SystemTarget) |
Logger |
Logger instance to be used by grain service subclasses |
Range |
Gets the monotonically increasing serial number of the version of the ring range owned by the grain service instance |
Ring |
Gets the range of the partitioning ring currently owned by the grain service instance |
Scheduler |
Gets the scheduler. (Inherited from SystemTarget) |
Silo |
Silo address of the system target. (Inherited from SystemTarget) |
Status |
Gets the status of the grain service instance |
Stopped |
Gets the token for signaling cancellation upon stopping of grain service |
Activate(Dictionary<String,Object>, Cancellation |
Start activating this instance. (Inherited from SystemTarget) |
Activate(Dictionary<String,Object>, Nullable<Cancellation |
Start activating this instance. (Inherited from SystemTarget) |
Deactivate(Deactivation |
Start deactivating this instance. (Inherited from SystemTarget) |
Deactivate(Deactivation |
Start deactivating this instance. (Inherited from SystemTarget) |
Dispose() | (Inherited from SystemTarget) |
Get |
Gets the component with the specified type. (Inherited from SystemTarget) |
Get |
Returns the grain extension registered for the provided |
Get |
|
Get |
Binds an extension to an addressable object, if not already done. (Inherited from SystemTarget) |
Get |
Gets the target. (Inherited from SystemTarget) |
Init(IService |
Invoked upon initialization of the service |
Migrate(Dictionary<String,Object>, Cancellation |
(Inherited from SystemTarget) |
Migrate(Dictionary<String,Object>, Nullable<Cancellation |
(Inherited from SystemTarget) |
On |
Invoked when the ring range owned by the service instance changes because of a change in the cluster state |
Receive |
Submits an incoming message to this instance. (Inherited from SystemTarget) |
Register |
Registers a timer to send regular callbacks to this grain. This timer will keep the current grain from being deactivated. (Inherited from SystemTarget) |
Register |
Registers a timer to send regular callbacks to this grain. This timer will keep the current grain from being deactivated. (Inherited from SystemTarget) |
Rehydrate(IRehydration |
(Inherited from SystemTarget) |
Set |
Sets the provided value as the component for type |
Start() |
Invoked when service is being started |
Start |
Deferred part of initialization that executes after the service is already started (to speed up startup). Sets Status to Started. |
Stop() |
Invoked when service is being stopped |
To |
Override of object.ToString() (Inherited from SystemTarget) |
IEquatable<IGrain |
(Inherited from SystemTarget) |
IFormattable. |
(Inherited from SystemTarget) |
IGrain |
Gets the activation id. (Inherited from SystemTarget) |
IGrain |
Gets the activation address. (Inherited from SystemTarget) |
IGrain |
Gets the grain instance, or |
IGrain |
Gets the observable Grain lifecycle, which can be used to add lifecycle hooks. (Inherited from SystemTarget) |
ISpan |
(Inherited from SystemTarget) |
ITarget |
Gets the component with the specified type. (Inherited from SystemTarget) |
Get |
Used by generated code for IGrainExtension interfaces. |
As |
Returns a typed reference to the provided grain. |
As |
Returns a typed reference to the provided grain. |
Bind |
Binds the grain reference to the provided IGrainFactory. |
Cast(IAddressable, Type) |
Returns a typed reference to the provided grain. |
Cast<TGrain |
Returns a typed reference to the provided grain. |
Get |
Returns the grain id corresponding to the provided grain. |
Get |
Returns the Guid representation of a grain primary key. |
Get |
Returns the Guid representation of a grain primary key. |
Get |
Returns the |
Get |
Returns the |
Get |
Returns the |
Is |
Returns whether part of the primary key is of type |
Deactivate |
Deactivates the provided grain. |
Deactivate |
Deactivates the provided grain. |
Schedule |
Schedules the provided |
Schedule |
Schedules the provided |
Schedule |
Schedules the provided |