Example #1
0
 public AuthorizationManager(IChatTransport chatTransport,
                             IHashAlgorithm hashAlgorithm, IMapper mapper)
 {
     _chatTransport = chatTransport;
     _hashAlgorithm = hashAlgorithm;
     _mapper        = mapper;
 }
Example #2
0
 internal ChatClient(ILogger <ChatClient> logger,
                     IChatTransport transport)
 {
     this.logger             = logger;
     this.transport          = new ChatExchangeTransport(transport);
     this.rooms              = new ConcurrentDictionary <string, Room>();
     this.clientLifetime     = new CancellationTokenSource();
     this.ClientCancellation = this.clientLifetime.Token;
 }
 public RelationManager(IChatTransport chatTransport)
 {
     _chatTransport = chatTransport;
 }
Example #4
0
 public UserManager(IChatTransport chatTransport)
 {
     _chatTransport = chatTransport;
 }
Example #5
0
 public MessageManager(IChatTransport chatTransport)
 {
     _chatTransport = chatTransport;
 }
Example #6
0
 public IChatClient CreateClient(IChatTransport clientTransport)
 {
     return(new ChatClient(loggerFactory.CreateLogger <ChatClient>(), clientTransport));
 }
 public ChatExchangeTransport(IChatTransport transport)
 {
     this.transport        = transport;
     this.pendingMessages  = new ConcurrentDictionary <ulong, TaskCompletionSource <IMessage> >();
     this.exchangeLifetime = new CancellationTokenSource();
 }