다음을 통해 공유


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

serialization 코덱 공급자를 가져옵니다.

CopyContextPool

serialization 복사 컨텍스트 풀을 가져옵니다.

GrainId

조직 ID를 가져옵니다.

GrainIdentity

모든 조직 참조의 기본 클래스입니다.

GrainServiceSiloAddress

모든 조직 참조의 기본 클래스입니다.

InterfaceId

생성된 코드에서 구현된 상수를 반환하기 위해 생성된 서브클래스에 의해 구현됩니다.

InterfaceName

인터페이스 이름을 가져옵니다.

InterfaceType

인터페이스 형식을 가져옵니다.

InterfaceVersion

인터페이스 버전을 가져옵니다.

IsGrainService

모든 조직 참조의 기본 클래스입니다.

IsInitializedSystemTarget

시스템 대상의 런타임 환경이 아직 초기화되었는지 여부입니다. 생성된 코드에서 호출됩니다.

메서드

Cast<TGrainInterface>()

지정된 조직 인터페이스를 구현하는 새 조직 참조를 만듭니다.

CopyGrainReference(Object, ICopyContext)

조직 참조에 대한 복사기 함수입니다.

DeserializeGrainReference(Type, IDeserializationContext)

조직 참조에 대한 역직렬 변환기 함수입니다.

Equals(GrainReference)

모든 조직 참조의 기본 클래스입니다.

Equals(Object)

다른 개체와 같은지 이 참조를 테스트합니다. 두 조직 참조는 둘 다 동일한 조직을 참조하는 경우 동일합니다.

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)

조직 참조에 대한 Serializer 함수입니다.

ToKeyInfo()

모든 조직 참조의 기본 클래스입니다.

ToKeyString()

이 조직의 키 값을 문자열로 가져옵니다.

ToString()

이 참조의 문자열 표현을 반환합니다.

연산자

Equality(GrainReference, GrainReference)

같음의 두 참조를 비교합니다. 두 조직 참조는 둘 다 동일한 조직을 참조하는 경우 동일합니다.

Inequality(GrainReference, GrainReference)

같지 않음에 대한 두 참조를 비교합니다. 두 조직 참조는 둘 다 동일한 조직을 참조하는 경우 동일합니다.

명시적 인터페이스 구현

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만큼 고유하지만 더 짧고 구문 분석할 수 있습니다. 고유성과 간결함이 중요한 곳에 사용하기 위한 것입니다.

적용 대상