コード例 #1
0
ファイル: CallTest.cs プロジェクト: paralin/SuperPool
        /// <summary>
        /// Implementor works on local referencing model.
        /// </summary>
        CallTestImplementor CreateDefaultImplementor()
        {
            Matrix.Framework.SuperPool.Core.SuperPool pool = new Matrix.Framework.SuperPool.Core.SuperPool("DefaultImplementor.Pool");

            CallTestImplementor implementor = new CallTestImplementor();

            pool.AddClient(implementor.Client1);
            pool.AddClient(implementor.Client2);
            implementor.Disposables.Add(pool);

            return(implementor);
        }
コード例 #2
0
ファイル: CallTest.cs プロジェクト: paralin/SuperPool
        /// <summary>
        /// Implementor works on local referencing model.
        /// </summary>
        CallTestImplementor CreateBinaryLocalImplementor()
        {
            Matrix.Framework.MessageBus.Core.MessageBus bus  = new Matrix.Framework.MessageBus.Core.MessageBus("BinaryLocalImplementor.Pool", new BinarySerializer());
            Matrix.Framework.SuperPool.Core.SuperPool   pool = new Matrix.Framework.SuperPool.Core.SuperPool(bus);

            CallTestImplementor implementor = new CallTestImplementor();

            pool.AddClient(implementor.Client1);
            pool.AddClient(implementor.Client2);
            implementor.Disposables.Add(pool);

            implementor.Client1.EnvelopeDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;
            implementor.Client1.EnvelopeMultiReceiverDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;

            implementor.Client2.EnvelopeDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;
            implementor.Client2.EnvelopeMultiReceiverDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;

            return(implementor);
        }
コード例 #3
0
ファイル: CallTest.cs プロジェクト: paralin/SuperPool
        /// <summary>
        /// Implementor works on local referencing model.
        /// </summary>
        CallTestImplementor CreateDefaultImplementor()
        {
            Matrix.Framework.SuperPool.Core.SuperPool pool = new Matrix.Framework.SuperPool.Core.SuperPool("DefaultImplementor.Pool");

            CallTestImplementor implementor = new CallTestImplementor();
            pool.AddClient(implementor.Client1);
            pool.AddClient(implementor.Client2);
            implementor.Disposables.Add(pool);

            return implementor;
        }
コード例 #4
0
ファイル: CallTest.cs プロジェクト: paralin/SuperPool
        /// <summary>
        /// Implementor works on local referencing model.
        /// </summary>
        CallTestImplementor CreateBinaryLocalImplementor()
        {
            Matrix.Framework.MessageBus.Core.MessageBus bus = new Matrix.Framework.MessageBus.Core.MessageBus("BinaryLocalImplementor.Pool", new BinarySerializer());
            Matrix.Framework.SuperPool.Core.SuperPool pool = new Matrix.Framework.SuperPool.Core.SuperPool(bus);

            CallTestImplementor implementor = new CallTestImplementor();
            pool.AddClient(implementor.Client1);
            pool.AddClient(implementor.Client2);
            implementor.Disposables.Add(pool);

            implementor.Client1.EnvelopeDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;
            implementor.Client1.EnvelopeMultiReceiverDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;

            implementor.Client2.EnvelopeDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;
            implementor.Client2.EnvelopeMultiReceiverDuplicationMode = Matrix.Framework.MessageBus.Core.Envelope.DuplicationModeEnum.DuplicateBoth;

            return implementor;
        }