public MessageTransmitterImpl(GuidProxy guidProxy, IPofSerializer pofSerializer, NetworkBroadcaster networkBroadcaster, UnacknowledgedReliableMessageContainer unacknowledgedReliableMessageContainer, ObjectPool <CourierMessageV1> messageDtoPool)
 {
     this.guidProxy          = guidProxy;
     this.pofSerializer      = pofSerializer;
     this.networkBroadcaster = networkBroadcaster;
     this.unacknowledgedReliableMessageContainer = unacknowledgedReliableMessageContainer;
     this.messageDtoPool = messageDtoPool;
 }
示例#2
0
 public CourierClientFactoryImpl(GuidProxy guidProxy, IThreadingProxy threadingProxy, INetworkingProxy networkingProxy, ObjectPoolFactory objectPoolFactory, IPofSerializer pofSerializer)
 {
     this.guidProxy         = guidProxy;
     this.threadingProxy    = threadingProxy;
     this.networkingProxy   = networkingProxy;
     this.objectPoolFactory = objectPoolFactory;
     this.pofSerializer     = pofSerializer;
 }
示例#3
0
 private static unsafe int GuidProxyToChars(char *chars, int offset, GuidProxy guidProxy, bool dash, bool hex)
 {
     if (hex)
     {
         // {0xdddddddd,0xdddd,0xdddd,{0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd}}
         chars[offset++] = '0';
         chars[offset++] = 'x';
         offset          = HexsToChars(chars, offset, guidProxy.a >> 24, guidProxy.a >> 16);
         offset          = HexsToChars(chars, offset, guidProxy.a >> 8, guidProxy.a);
         chars[offset++] = ',';
         chars[offset++] = '0';
         chars[offset++] = 'x';
         offset          = HexsToChars(chars, offset, guidProxy.b >> 8, guidProxy.b);
         chars[offset++] = ',';
         chars[offset++] = '0';
         chars[offset++] = 'x';
         offset          = HexsToChars(chars, offset, guidProxy.c >> 8, guidProxy.c);
         chars[offset++] = ',';
         chars[offset++] = '{';
         offset          = HexsToChars(chars, offset, guidProxy.d, guidProxy.e, true);
         chars[offset++] = ',';
         offset          = HexsToChars(chars, offset, guidProxy.f, guidProxy.g, true);
         chars[offset++] = ',';
         offset          = HexsToChars(chars, offset, guidProxy.h, guidProxy.i, true);
         chars[offset++] = ',';
         offset          = HexsToChars(chars, offset, guidProxy.j, guidProxy.k, true);
         chars[offset++] = '}';
     }
     else
     {
         // [{|(]dddddddd[-]dddd[-]dddd[-]dddd[-]dddddddddddd[}|)]
         offset = HexsToChars(chars, offset, guidProxy.a >> 24, guidProxy.a >> 16);
         offset = HexsToChars(chars, offset, guidProxy.a >> 8, guidProxy.a);
         if (dash)
         {
             chars[offset++] = '-';
         }
         offset = HexsToChars(chars, offset, guidProxy.b >> 8, guidProxy.b);
         if (dash)
         {
             chars[offset++] = '-';
         }
         offset = HexsToChars(chars, offset, guidProxy.c >> 8, guidProxy.c);
         if (dash)
         {
             chars[offset++] = '-';
         }
         offset = HexsToChars(chars, offset, guidProxy.d, guidProxy.e);
         if (dash)
         {
             chars[offset++] = '-';
         }
         offset = HexsToChars(chars, offset, guidProxy.f, guidProxy.g);
         offset = HexsToChars(chars, offset, guidProxy.h, guidProxy.i);
         offset = HexsToChars(chars, offset, guidProxy.j, guidProxy.k);
     }
     return(offset);
 }
示例#4
0
 public CourierMessageFactoryImpl(GuidProxy guidProxy, IPofSerializer pofSerializer)
 {
     this.guidProxy     = guidProxy;
     this.pofSerializer = pofSerializer;
 }
示例#5
0
 public MessageSenderImpl(GuidProxy guidProxy, UnacknowledgedReliableMessageContainer unacknowledgedReliableMessageContainer, MessageTransmitter messageTransmitter)
 {
     this.guidProxy = guidProxy;
     this.unacknowledgedReliableMessageContainer = unacknowledgedReliableMessageContainer;
     this.messageTransmitter = messageTransmitter;
 }
 public OutboundEnvelopeManagerImpl(GuidProxy guidProxy, OutboundEnvelopeContextFactory outboundEnvelopeContextFactory, IConcurrentDictionary <Guid, OutboundEnvelopeContext> activeEnvelopeContextsById)
 {
     this.guidProxy = guidProxy;
     this.outboundEnvelopeContextFactory = outboundEnvelopeContextFactory;
     this.activeEnvelopeContextsById     = activeEnvelopeContextsById;
 }
 public OutboundEnvelopeManagerImpl(GuidProxy guidProxy, OutboundEnvelopeContextFactory outboundEnvelopeContextFactory)
     : this(guidProxy,
            outboundEnvelopeContextFactory,
            new ConcurrentDictionary <Guid, OutboundEnvelopeContext>())
 {
 }