/// <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); }
/// <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); }
/// <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; }
/// <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; }