예제 #1
0
        /// <summary>
        /// Sets all required properties based on the given target thread.
        /// The name of the messenger is directly taken from the given <see cref="BackgroundLoop"/>.
        /// </summary>
        /// <param name="hostThread">The thread on which this Messenger should work on.</param>
        public void ConnectToGlobalMessaging(BackgroundLoop hostThread)
        {
            hostThread.EnsureNotNull(nameof(hostThread));

            this.ConnectToGlobalMessaging(
                FirLibMessengerThreadingBehavior.EnsureMainSyncContextOnSyncCalls,
                hostThread.Name,
                hostThread.SyncContext);
        }