コード例 #1
0
        public void StartMailboxes()
        {
            with(FSHelper.StartUserMailbox(this, Parent, actorFn, setupFn), (q, mb) =>
            {
                userMailboxQuit = q;
                userMailbox     = mb;
            });

            with(FSHelper.StartSystemMailbox(this, Parent), (q, mb) =>
            {
                systemMailboxQuit = q;
                systemMailbox     = mb;
            });
        }
コード例 #2
0
ファイル: Actor.cs プロジェクト: jgglg/language-ext
        /// <summary>
        /// Creates a user and system mailbox
        /// </summary>
        private void StartMailboxes()
        {
            map(FSHelper.StartUserMailbox(this, Parent, actorFn, setupFn), (q, mb) =>
            {
                userMailboxQuit = q;
                userMailbox     = mb;
            });

            map(FSHelper.StartSystemMailbox(this, Parent), (q, mb) =>
            {
                systemMailboxQuit = q;
                systemMailbox     = mb;
            });
        }