source: binary-improvements2/MapRendering/Web/RequestContext.cs@ 387

Last change on this file since 387 was 387, checked in by alloc, 2 years ago

Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time

File size: 657 bytes
Line 
1using SpaceWizards.HttpListener;
2
3namespace AllocsFixes.NetConnections.Servers.Web {
4 public class RequestContext {
5 public string RequestPath;
6 public readonly HttpListenerRequest Request;
7 public readonly HttpListenerResponse Response;
8 public readonly WebConnection Connection;
9 public readonly int PermissionLevel;
10
11 public RequestContext (string _requestPath, HttpListenerRequest _request, HttpListenerResponse _response, WebConnection _connection, int _permissionLevel) {
12 RequestPath = _requestPath;
13 Request = _request;
14 Response = _response;
15 Connection = _connection;
16 PermissionLevel = _permissionLevel;
17 }
18 }
19}
Note: See TracBrowser for help on using the repository browser.