共用方式為


StreamSubscriptionManagerExtensions.AddSubscription 方法

定義

多載

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, GrainId)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Guid, String)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Int64, String)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, String, String)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Guid, String)
AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Int64, String)
AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, String, String)
AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Guid, String, String)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Int64, String, String)

將指定的粒紋訂閱至指定的資料流程。

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Guid, String, String)
AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Int64, String, String)

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, GrainId)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, Orleans.Runtime.GrainId grainId) where TGrainInterface : Orleans.IGrainWithGuidKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * Orleans.Runtime.GrainId -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithGuidKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithGuidKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, grainId As GrainId) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋介面類別型。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

grainId
GrainId

要訂閱的粒紋。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Guid, String)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, Guid primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithGuidKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * Guid * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithGuidKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithGuidKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, primaryKey As Guid, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋是主要實作的介面。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

primaryKey
Guid

粒紋的主鍵。

grainClassNamePrefix
String

粒紋類別名稱前置詞。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Int64, String)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, long primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithIntegerKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * int64 * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithIntegerKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithIntegerKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, primaryKey As Long, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋是主要實作的介面。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

primaryKey
Int64

粒紋的主鍵。

grainClassNamePrefix
String

粒紋類別名稱前置詞。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, String, String)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, string primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithStringKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithStringKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithStringKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, primaryKey As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋是主要實作的介面。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

primaryKey
String

粒紋的主鍵。

grainClassNamePrefix
String

粒紋類別名稱前置詞。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Guid, String)

來源:
StreamSubscriptionManagerExtensions.cs
public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Streams.IStreamIdentity streamId, string streamProviderName, Guid primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithGuidKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Streams.IStreamIdentity * string * Guid * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithGuidKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithGuidKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As IStreamIdentity, streamProviderName As String, primaryKey As Guid, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

參數

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Guid
grainClassNamePrefix
String

傳回

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Int64, String)

來源:
StreamSubscriptionManagerExtensions.cs
public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Streams.IStreamIdentity streamId, string streamProviderName, long primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithIntegerKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Streams.IStreamIdentity * string * int64 * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithIntegerKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithIntegerKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As IStreamIdentity, streamProviderName As String, primaryKey As Long, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

參數

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Int64
grainClassNamePrefix
String

傳回

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, String, String)

來源:
StreamSubscriptionManagerExtensions.cs
public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Streams.IStreamIdentity streamId, string streamProviderName, string primaryKey, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithStringKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Streams.IStreamIdentity * string * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithStringKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithStringKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As IStreamIdentity, streamProviderName As String, primaryKey As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

參數

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
String
grainClassNamePrefix
String

傳回

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Guid, String, String)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, Guid primaryKey, string keyExtension, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithGuidCompoundKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * Guid * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithGuidCompoundKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithGuidCompoundKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, primaryKey As Guid, keyExtension As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋是主要實作的介面。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

primaryKey
Guid

粒紋的主鍵。

keyExtension
String

粒紋的金鑰延伸模組。

grainClassNamePrefix
String

粒紋類別名稱前置詞。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, StreamId, String, Int64, String, String)

將指定的粒紋訂閱至指定的資料流程。

public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Runtime.StreamId streamId, string streamProviderName, long primaryKey, string keyExtension, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithIntegerCompoundKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Runtime.StreamId * string * int64 * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithIntegerCompoundKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithIntegerCompoundKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As StreamId, streamProviderName As String, primaryKey As Long, keyExtension As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

粒紋是主要實作的介面。

參數

manager
IStreamSubscriptionManager

經理。

grainFactory
IGrainFactory

粒紋處理站。

streamId
StreamId

資料流識別碼。

streamProviderName
String

資料流程提供者的名稱。

primaryKey
Int64

粒紋的主鍵。

keyExtension
String

粒紋的金鑰延伸模組。

grainClassNamePrefix
String

粒紋類別名稱前置詞。

傳回

新增的訂用帳戶。

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Guid, String, String)

來源:
StreamSubscriptionManagerExtensions.cs
public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Streams.IStreamIdentity streamId, string streamProviderName, Guid primaryKey, string keyExtension, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithGuidCompoundKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Streams.IStreamIdentity * string * Guid * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithGuidCompoundKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithGuidCompoundKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As IStreamIdentity, streamProviderName As String, primaryKey As Guid, keyExtension As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

參數

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Guid
keyExtension
String
grainClassNamePrefix
String

傳回

適用於

AddSubscription<TGrainInterface>(IStreamSubscriptionManager, IGrainFactory, IStreamIdentity, String, Int64, String, String)

來源:
StreamSubscriptionManagerExtensions.cs
public static System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription<TGrainInterface> (this Orleans.Streams.Core.IStreamSubscriptionManager manager, Orleans.IGrainFactory grainFactory, Orleans.Streams.IStreamIdentity streamId, string streamProviderName, long primaryKey, string keyExtension, string grainClassNamePrefix = default) where TGrainInterface : Orleans.IGrainWithIntegerCompoundKey;
static member AddSubscription : Orleans.Streams.Core.IStreamSubscriptionManager * Orleans.IGrainFactory * Orleans.Streams.IStreamIdentity * string * int64 * string * string -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> (requires 'GrainInterface :> Orleans.IGrainWithIntegerCompoundKey)
<Extension()>
Public Function AddSubscription(Of TGrainInterface As IGrainWithIntegerCompoundKey) (manager As IStreamSubscriptionManager, grainFactory As IGrainFactory, streamId As IStreamIdentity, streamProviderName As String, primaryKey As Long, keyExtension As String, Optional grainClassNamePrefix As String = Nothing) As Task(Of StreamSubscription)

類型參數

TGrainInterface

參數

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Int64
keyExtension
String
grainClassNamePrefix
String

傳回

適用於