コード例 #1
0
ファイル: Client.cs プロジェクト: kantora/ClusterKit
        /// <summary>
        /// Gets path to web descriptor for node with role "web"
        /// </summary>
        /// <param name="system">The actor system</param>
        /// <param name="nodeAddress">The web node</param>
        /// <returns>Path to web descriptor</returns>
        public static ICanTell GetWebDescriptor(this ActorSystem system, [NotNull] Address nodeAddress)
        {
            if (nodeAddress == null)
            {
                throw new ArgumentNullException(nameof(nodeAddress));
            }

            return system.ActorSelection($"{nodeAddress}/user/Web/Descriptor");
        }
コード例 #2
0
 private static ActorSelection GetPluginPort(this IActorContext context) => context.ActorSelection("/user/core/pluginport");
コード例 #3
0
 private static ActorSelection GetTaskQueue(this IActorContext context) => context.ActorSelection("/user/core/taskqueue");
コード例 #4
0
 private static ActorSelection GetClientPort(this IActorContext context) => context.ActorSelection("/user/core/clientport");
コード例 #5
0
 private static ActorSelection GetDeviceStore(this IActorContext context) => context.ActorSelection("/user/core/devicestore");
コード例 #6
0
ファイル: AddressBook.cs プロジェクト: fjsnogueira/AkkaCQRS
 /// <summary>
 /// Returns a reference to address book.
 /// </summary>
 public static ICanTell GetAddressBook(this ActorSystem system)
 {
     return system.ActorSelection("/user/" + AddressBook.Name);
 }