다음을 통해 공유


PersistentStateFactory.Create 메서드

정의

오버로드

Create<TState>(IGrainActivationContext, IPersistentStateConfiguration)
Create<TState>(IGrainContext, IPersistentStateConfiguration)

제공된 조직에 대한 영구 상태 인스턴스를 만듭니다.

Create<TState>(IGrainActivationContext, IPersistentStateConfiguration)

Source:
PersistentStateStorageFactory.cs
public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainActivationContext context, Orleans.Runtime.IPersistentStateConfiguration cfg) where TState : new();
public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainActivationContext context, Orleans.Runtime.IPersistentStateConfiguration cfg);
abstract member Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State (requires 'State : (new : unit -> 'State))> (requires 'State : (new : unit -> 'State))
override this.Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State (requires 'State : (new : unit -> 'State))> (requires 'State : (new : unit -> 'State))
abstract member Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
override this.Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
Public Function Create(Of TState As New) (context As IGrainActivationContext, cfg As IPersistentStateConfiguration) As IPersistentState(Of TState)
Public Function Create(Of TState) (context As IGrainActivationContext, cfg As IPersistentStateConfiguration) As IPersistentState(Of TState)

형식 매개 변수

TState

매개 변수

반환

구현

적용 대상

Create<TState>(IGrainContext, IPersistentStateConfiguration)

제공된 조직에 대한 영구 상태 인스턴스를 만듭니다.

public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainContext context, Orleans.Runtime.IPersistentStateConfiguration cfg);
abstract member Create : Orleans.Runtime.IGrainContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
override this.Create : Orleans.Runtime.IGrainContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
Public Function Create(Of TState) (context As IGrainContext, cfg As IPersistentStateConfiguration) As IPersistentState(Of TState)

형식 매개 변수

TState

기본 상태 유형입니다.

매개 변수

context
IGrainContext

조직 컨텍스트입니다.

반환

지정된 구성을 사용하여 제공된 조직에 대한 영구 상태 인스턴스입니다.

구현

적용 대상