Skip to content

Commit 8955292

Browse files
pull request comment
1 parent 009318c commit 8955292

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Dapr.Actors/Runtime/ActorRegistrationCollection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void RegisterActor<TActor>(string actorTypeName, Action<ActorRegistration
7474
/// <typeparam name="TActor">Type of actor.</typeparam>
7575
/// <param name="configure">An optional delegate used to configure the actor registration.</param>
7676
public void RegisterActor<TActorInterface, TActor>(Action<ActorRegistration> configure = null)
77+
where TActorInterface : Actor
7778
where TActor : Actor
7879
{
7980
RegisterActor<TActorInterface, TActor>(actorTypeName: null, configure);
@@ -87,6 +88,7 @@ public void RegisterActor<TActorInterface, TActor>(Action<ActorRegistration> con
8788
/// <param name="typeOptions">An optional <see cref="ActorRuntimeOptions"/> that defines values for this type alone.</param>
8889
/// <param name="configure">An optional delegate used to configure the actor registration.</param>
8990
public void RegisterActor<TActorInterface, TActor>(ActorRuntimeOptions typeOptions, Action<ActorRegistration> configure = null)
91+
where TActorInterface : Actor
9092
where TActor : Actor
9193
{
9294
RegisterActor(typeof(TActorInterface), typeof(TActor), null, typeOptions, configure);
@@ -101,6 +103,7 @@ public void RegisterActor<TActorInterface, TActor>(ActorRuntimeOptions typeOptio
101103
/// <param name="configure">An optional delegate used to configure the actor registration.</param>
102104
/// <remarks>The value of <paramref name="actorTypeName"/> will have precedence over the default actor type name derived from the actor implementation type or any type name set via <see cref="ActorAttribute"/>.</remarks>
103105
public void RegisterActor<TActorInterface, TActor>(string actorTypeName, Action<ActorRegistration> configure = null)
106+
where TActorInterface : Actor
104107
where TActor : Actor
105108
{
106109
RegisterActor(typeof(TActorInterface), typeof(TActor), actorTypeName, null, configure);

0 commit comments

Comments
 (0)