Akka.TestKit.Internal.InternalTestActorRef.CreateUniqueName C# (CSharp) Метод

CreateUniqueName() публичный статический Метод

INTERNAL Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
public static CreateUniqueName ( ) : string
Результат string
        public static string CreateUniqueName()
        {
            var number = _uniqueNameNumber.GetAndIncrement();
            return "$$" + number.Base64Encode();
            //Looking at the scala code, this might not be obvious that the name starts with $$
            //object TestActorRef (TestActorRef.scala) contain this code: 
            //    private[testkit] def randomName: String = {
            //      val l = number.getAndIncrement()
            //      "$" + akka.util.Helpers.base64(l)
            //    }
            //So it adds one $. The second is added by akka.util.Helpers.base64(l) which by default 
            //creates a StringBuilder and adds adds $. Hence, 2 $$
        }
        private InternalTestActorRef(ActorSystem system, Props props, MessageDispatcher dispatcher, Func<Mailbox> createMailbox, IInternalActorRef supervisor, ActorPath path) //TODO: switch from  Func<Mailbox> createMailbox to MailboxType mailboxType