public AuthorizationManager(IChatTransport chatTransport, IHashAlgorithm hashAlgorithm, IMapper mapper) { _chatTransport = chatTransport; _hashAlgorithm = hashAlgorithm; _mapper = mapper; }
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; }
public UserManager(IChatTransport chatTransport) { _chatTransport = chatTransport; }
public MessageManager(IChatTransport chatTransport) { _chatTransport = chatTransport; }
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(); }