public ProxyUsersCommunicationsNodeRequestHandler(NodeRequest request, NodeConnection current, IAppServiceProvider serviceProvider) { this.request = (ProxyUsersCommunicationsNodeRequest)request; this.current = current; clientRequestService = new ClientRequestService(serviceProvider.NoticeService); this.serviceProvider = serviceProvider; }
public async Task <ProxyUsersCommunicationsNodeResponse> SendProxyUsersCommunicationsNodeRequestAsync( byte[] communicationData, long userId, NodeConnection nodeConnection, ObjectType objectType, byte[] userPublicKey, byte[] signPublicKey) { ProxyUsersCommunicationsNodeRequest nodeRequest = new ProxyUsersCommunicationsNodeRequest( communicationData, userId, objectType, userPublicKey, signPublicKey); SendRequest(nodeConnection, nodeRequest); return((ProxyUsersCommunicationsNodeResponse) await GetResponseAsync(nodeRequest, (int)TimeSpan.FromSeconds(30).TotalMilliseconds).ConfigureAwait(false)); }