Skip to content

Commit

Permalink
Defined RegisterMailboxType()
Browse files Browse the repository at this point in the history
  • Loading branch information
tjaskula committed Dec 12, 2022
1 parent 6d4a171 commit 0de165b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Vlingo.Xoom.Actors/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,14 @@ public void RegisterMailboxProviderKeeper(IMailboxProviderKeeper keeper)
_mailboxProviderKeeper.Close();
_mailboxProviderKeeper = keeper;
}

/// <summary>
/// Register a programmatically created <see cref="IMailbox"/> by its <see cref="IMailboxConfiguration{T}"/>.
/// </summary>
/// <param name="mailboxConfiguration">The <see cref="IMailboxConfiguration{T}"/> describing the mailbox type to register</param>
/// <typeparam name="T">The type of the mailbox</typeparam>
public void RegisterMailboxType<T>(IMailboxConfiguration<T> mailboxConfiguration) =>
mailboxConfiguration.Plugin().Start(this);

/// <summary>
/// Registers the dynamic <paramref name="value"/> with the <paramref name="name"/> key.
Expand Down

0 comments on commit 0de165b

Please sign in to comment.