StreamSubscriptionManagerExtensions.AddSubscription Method

Definition

Overloads

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

Subscribes the specified grain to the specified stream.

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

Subscribes the specified grain to the specified stream.

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

Subscribes the specified grain to the specified stream.

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

Subscribes the specified grain to the specified stream.

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)

Subscribes the specified grain to the specified stream.

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

Subscribes the specified grain to the specified stream.

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)

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

The grain interface type.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

grainId
GrainId

The grain to subscribe.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

An interface which the grain is the primary implementation of.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

primaryKey
Guid

The grain's primary key.

grainClassNamePrefix
String

The grain class name prefix.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

An interface which the grain is the primary implementation of.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

primaryKey
Int64

The grain's primary key.

grainClassNamePrefix
String

The grain class name prefix.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

An interface which the grain is the primary implementation of.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

primaryKey
String

The grain's primary key.

grainClassNamePrefix
String

The grain class name prefix.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Source:
StreamSubscriptionManagerExtensions.cs
C#
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;

Type Parameters

TGrainInterface

Parameters

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Guid
grainClassNamePrefix
String

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0

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

Source:
StreamSubscriptionManagerExtensions.cs
C#
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;

Type Parameters

TGrainInterface

Parameters

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
Int64
grainClassNamePrefix
String

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0

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

Source:
StreamSubscriptionManagerExtensions.cs
C#
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;

Type Parameters

TGrainInterface

Parameters

grainFactory
IGrainFactory
streamId
IStreamIdentity
streamProviderName
String
primaryKey
String
grainClassNamePrefix
String

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0

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

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

An interface which the grain is the primary implementation of.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

primaryKey
Guid

The grain's primary key.

keyExtension
String

The grain's key extension.

grainClassNamePrefix
String

The grain class name prefix.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Subscribes the specified grain to the specified stream.

C#
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;

Type Parameters

TGrainInterface

An interface which the grain is the primary implementation of.

Parameters

manager
IStreamSubscriptionManager

The manager.

grainFactory
IGrainFactory

The grain factory.

streamId
StreamId

The stream identifier.

streamProviderName
String

Name of the stream provider.

primaryKey
Int64

The grain's primary key.

keyExtension
String

The grain's key extension.

grainClassNamePrefix
String

The grain class name prefix.

Returns

The newly added subscription.

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

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

Source:
StreamSubscriptionManagerExtensions.cs
C#
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;

Type Parameters

TGrainInterface

Parameters

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

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0

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

Source:
StreamSubscriptionManagerExtensions.cs
C#
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;

Type Parameters

TGrainInterface

Parameters

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

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0