Exemplo n.º 1
0
 public HttpAdapter(DotQueueAddress address, IJsonSerializer <T> serializer, IJsonSerializer <Message> messageSerializer, IApiTokenSource tokenSource = null)
 {
     _tokenSource       = tokenSource;
     _messageSerializer = messageSerializer;
     _address           = address;
     _type       = typeof(T).Name;
     _serializer = serializer;
 }
Exemplo n.º 2
0
 public MessageQueue(DotQueueAddress address, IApiTokenSource tokenSource = null)
 {
     _tokenSource     = tokenSource;
     _httpAdapter     = new HttpAdapter <T>(address, new JsonSerializer <T>(), new JsonSerializer <Message>(), _tokenSource);
     _listenerAdapter = new ListenerAdapter <T>();
     _portResolver    = new LocalPortResolver();
     _durationHelper  = new WaitDurationHelper();
     InitializeQueueTasks(address);
 }