diff --git a/Rest.Net.Example/App.config b/Rest.Net.Example/App.config
deleted file mode 100644
index 56efbc7..0000000
--- a/Rest.Net.Example/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Rest.Net.Example/Properties/AssemblyInfo.cs b/Rest.Net.Example/Properties/AssemblyInfo.cs
deleted file mode 100644
index 9d6daa1..0000000
--- a/Rest.Net.Example/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Rest.Net.Example")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Rest.Net.Example")]
-[assembly: AssemblyCopyright("Copyright © 2022")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("d476199d-526a-4831-866f-790676f8bc37")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rest.Net.Example/Rest.Net.Example.csproj b/Rest.Net.Example/Rest.Net.Example.csproj
index a650230..96f1275 100644
--- a/Rest.Net.Example/Rest.Net.Example.csproj
+++ b/Rest.Net.Example/Rest.Net.Example.csproj
@@ -1,59 +1,15 @@
-
-
-
+
+
- Debug
- AnyCPU
- {D476199D-526A-4831-866F-790676F8BC37}
- Exe
- MontoyaTech.Rest.Net.Example
+ exe
+ net6.0
+ disable
+ disable
MontoyaTech.Rest.Net.Example
- v4.7.2
- 512
- true
- true
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
+
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
- {03d4578f-3239-4b12-88bb-5d877c2609d6}
- Rest.Net
-
-
-
+
\ No newline at end of file
diff --git a/Rest.Net.Tests/Rest.Net.Tests.csproj b/Rest.Net.Tests/Rest.Net.Tests.csproj
index b5624ef..65a0920 100644
--- a/Rest.Net.Tests/Rest.Net.Tests.csproj
+++ b/Rest.Net.Tests/Rest.Net.Tests.csproj
@@ -2,10 +2,9 @@
net6.0
- enable
-
+ disable
+ disable
false
-
MontoyaTech.Rest.Net.Tests
diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj
index 595afa5..6b5df79 100644
--- a/Rest.Net/Rest.Net.csproj
+++ b/Rest.Net/Rest.Net.csproj
@@ -1,7 +1,10 @@
+
library
- net472
+ net6.0
+ disable
+ disable
True
MontoyaTech
MontoyaTech
@@ -14,22 +17,12 @@
MontoyaTech.Rest.Net
MontoyaTech.Rest.Net
True
- 1.0.9
+ 1.1.0
Optimized and fixed bugs within the route matcher. Changed argument matching to support segments after the argument for more complex routes.
+
-
- 13.0.1
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/Rest.Net/RouteListener.cs b/Rest.Net/RouteListener.cs
index af818e2..d060a77 100644
--- a/Rest.Net/RouteListener.cs
+++ b/Rest.Net/RouteListener.cs
@@ -101,9 +101,10 @@ namespace MontoyaTech.Rest.Net
{
ThreadPool.QueueUserWorkItem((o) =>
{
- try
+ while (this.HttpListener.IsListening)
{
- while (this.HttpListener.IsListening)
+ //Try catch around the thread pool, don't allow it to die.
+ try
{
ThreadPool.QueueUserWorkItem((item) =>
{
@@ -137,7 +138,7 @@ namespace MontoyaTech.Rest.Net
{
this.Routes[i].Invoke(context, arguments);
}
- catch
+ catch
{
ctx.Response.WithStatus(HttpStatusCode.InternalServerError);
}
@@ -167,8 +168,8 @@ namespace MontoyaTech.Rest.Net
}
}, this.HttpListener.GetContext());
}
+ catch { }
}
- catch { }
});
}