Test Project Created
+ Implemented Request Processing (Cache => Regex Events => Razor Pages => Static Content) + Rendering based on domain works - Areas are not implemented + Content Type Map now defines `.cshtml` files and default mime type was changed to "text/plain" + GetStaticFile no longer returns private templates/layouts (used to be able to view those in plain text by requesting with a fully qualified path) I will make more concise tests in a bit (I was not pushing to git properly, so have to make big commits for the time being)
This commit is contained in:
26
WebServer/ResponseTimedOutException.cs
Normal file
26
WebServer/ResponseTimedOutException.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace WebServer {
|
||||
public class ResponseTimedOutException : OperationCanceledException {
|
||||
public string FullPath;
|
||||
public List<MethodBase> MethodsUsed;
|
||||
public ResponseTimedOutException(string fullPath, List<MethodBase> methodsUsed, CancellationToken token)
|
||||
: base("The request took too long to fulfil", token) {
|
||||
FullPath = fullPath;
|
||||
MethodsUsed = methodsUsed;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return base.ToString()
|
||||
+ $"\nFullPath: '{FullPath}';"
|
||||
+ $"\nMethods Used: [\n{string.Join(",\n", MethodsUsed.Select(m => $" '{m.ReflectedType.FullName}.{m.Name}'"))} \n];";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user