Esempio n. 1
0
        public async Task ShowAllFiles()
        {
            var result = await _dispatcher.ProcessRequest(new ShowAllFilesQuery());

            Response.Headers.Add("result", result);
        }
 protected override void SocketServer_ConnectionRequested(ISocketServer sender, string hostname, Stream input, Stream output)
 {
     dispatcher.ProcessRequest(input, output).Wait();
 }