Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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;
        }
Exemplo n.º 4
0
        /// <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;
        }