次の方法で共有


GrainReference クラス

定義

これは、すべてのグレイン参照の基本クラスです。

[System.Serializable]
public class GrainReference : IEquatable<Orleans.Runtime.GrainReference>, Orleans.Runtime.IAddressable, System.Runtime.Serialization.ISerializable
[Orleans.Alias("GrainRef")]
[Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.Runtime.Request<>))]
[Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.Runtime.Request))]
[Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.Task<>), typeof(Orleans.Runtime.TaskRequest<>))]
[Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.Task), typeof(Orleans.Runtime.TaskRequest))]
[Orleans.DefaultInvokableBaseType(typeof(System.Void), typeof(Orleans.Runtime.VoidRequest))]
[Orleans.DefaultInvokableBaseType(typeof(System.Collections.Generic.IAsyncEnumerable<>), typeof(Orleans.Runtime.AsyncEnumerableRequest<>))]
public class GrainReference : IEquatable<Orleans.Runtime.GrainReference>, ISpanFormattable, Orleans.Runtime.IAddressable
[<System.Serializable>]
type GrainReference = class
    interface IAddressable
    interface IEquatable<GrainReference>
    interface ISerializable
[<Orleans.Alias("GrainRef")>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.Runtime.Request<>))>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.Runtime.Request))>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.Task<>), typeof(Orleans.Runtime.TaskRequest<>))>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Threading.Tasks.Task), typeof(Orleans.Runtime.TaskRequest))>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Void), typeof(Orleans.Runtime.VoidRequest))>]
[<Orleans.DefaultInvokableBaseType(typeof(System.Collections.Generic.IAsyncEnumerable<>), typeof(Orleans.Runtime.AsyncEnumerableRequest<>))>]
type GrainReference = class
    interface IAddressable
    interface IEquatable<GrainReference>
    interface ISpanFormattable
    interface IFormattable
Public Class GrainReference
Implements IAddressable, IEquatable(Of GrainReference), ISerializable
Public Class GrainReference
Implements IAddressable, IEquatable(Of GrainReference), ISpanFormattable
継承
GrainReference
属性
実装

コンストラクター

GrainReference(GrainReference)

グレイン参照のコピーを作成します。

GrainReference(GrainReference, InvokeMethodOptions)

これは、すべてのグレイン参照の基本クラスです。

GrainReference(GrainReferenceShared, IdSpan)

GrainReference クラスの新しいインスタンスを初期化します。

GrainReference(SerializationInfo, StreamingContext)

これは、すべてのグレイン参照の基本クラスです。

フィールド

SystemTargetSilo

生成されたコードから呼び出されます。

プロパティ

CodecProvider

シリアル化コーデック プロバイダーを取得します。

CopyContextPool

シリアル化コピー コンテキスト プールを取得します。

GrainId

グレイン ID を取得します。

GrainIdentity

これは、すべてのグレイン参照の基本クラスです。

GrainServiceSiloAddress

これは、すべてのグレイン参照の基本クラスです。

InterfaceId

生成されたコードで実装された定数を返すために、生成されたサブクラスによって実装されます。

InterfaceName

インターフェイス名を取得します。

InterfaceType

インターフェイスの種類を取得します。

InterfaceVersion

インターフェイスのバージョンを取得します。

IsGrainService

これは、すべてのグレイン参照の基本クラスです。

IsInitializedSystemTarget

システム ターゲットのランタイム環境がまだ初期化されているかどうか。 生成されたコードから呼び出されます。

メソッド

Cast<TGrainInterface>()

指定したグレイン インターフェイスを実装する新しいグレイン参照を作成します。

CopyGrainReference(Object, ICopyContext)

グレイン参照用のコピー機能。

DeserializeGrainReference(Type, IDeserializationContext)

グレイン参照用のデシリアライザー関数。

Equals(GrainReference)

これは、すべてのグレイン参照の基本クラスです。

Equals(Object)

この参照で、別のオブジェクトと等しいかどうかをテストします。 両方が同じグレインを参照している場合、2 つのグレイン参照は等しくなります。

GetHashCode()

グレイン参照のハッシュ コードを計算します。

GetInvokable<TInvokable>()

これは、すべてのグレイン参照の基本クラスです。

GetMethodName(Int32, Int32)

指定した interfaceId 値と methodId 値に関連付けられているメソッド名を返します。

GetObjectData(SerializationInfo, StreamingContext)

これは、すべてのグレイン参照の基本クラスです。

GetUniformHashCode()

このグレイン参照の均一なハッシュ コードを取得します。

Invoke(IRequest)

指定されたメソッドを呼び出します。

InvokeAsync(IRequest)

指定されたメソッドを呼び出します。

InvokeAsync<T>(IRequest)

指定されたメソッドを呼び出します。

InvokeMethodAsync<T>(Int32, Object[], InvokeMethodOptions, SiloAddress)

生成されたコードから呼び出されます。

InvokeOneWayMethod(Int32, Object[], InvokeMethodOptions, SiloAddress)

生成されたコードから呼び出されます。

IsCompatible(Int32)

生成されたコードで実装されます。

SerializeGrainReference(Object, ISerializationContext, Type)

グレイン参照用のシリアライザー関数。

ToKeyInfo()

これは、すべてのグレイン参照の基本クラスです。

ToKeyString()

このグレインのキー値を文字列として取得します。

ToString()

この参照の文字列表現を返します。

演算子

Equality(GrainReference, GrainReference)

2 つの参照を等しいかどうかを比較します。 両方が同じグレインを参照している場合、2 つのグレイン参照は等しくなります。

Inequality(GrainReference, GrainReference)

等しくない 2 つの参照を比較します。 両方が同じグレインを参照している場合、2 つのグレイン参照は等しくなります。

明示的なインターフェイスの実装

IFormattable.ToString(String, IFormatProvider)

これは、すべてのグレイン参照の基本クラスです。

ISpanFormattable.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

これは、すべてのグレイン参照の基本クラスです。

拡張メソッド

AsReference(IAddressable, Type)

指定されたグレインへの型指定された参照を返します。

AsReference<TGrainInterface>(IAddressable)

指定されたグレインへの型指定された参照を返します。

BindGrainReference(IAddressable, IGrainFactory)

グレイン参照を指定された IGrainFactoryにバインドします。

Cast(IAddressable, Type)

指定されたグレインへの型指定された参照を返します。

Cast<TGrainInterface>(IAddressable)

指定されたグレインへの型指定された参照を返します。

GetGrainId(IAddressable)

指定されたグレインに対応するグレイン ID を返します。

GetPrimaryKey(IAddressable)

Guidグレイン主キーの表現を返します。

GetPrimaryKey(IAddressable, String)

Guidグレイン主キーの表現を返します。

GetPrimaryKeyLong(IAddressable)

longグレイン主キーの表現を返します。

GetPrimaryKeyLong(IAddressable, String)

longグレイン主キーの表現を返します。

GetPrimaryKeyString(IAddressable)

グレインの string 主キーを返します。

IsPrimaryKeyBasedOnLong(IAddressable)

主キーの一部が 型であるかどうかを返します long

ToShortKeyString(GrainReference)

グレイン参照のキー文字列は ToKeyString と同じように一意ですが、短く解析可能です。 一意性と簡潔さが重要な場合に使用することを目的としています。

適用対象