Updated Session extensions and Route Contoller

Increased the number of Poll requests and disabled an irrelevant error stating that there was a cyclical struture (Just a Doubly Linked List)
This commit is contained in:
2022-01-27 09:46:38 +00:00
parent 924e25e1c6
commit 3cb2b9c9b5
3 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,11 @@ namespace EFB.Sessions
{
public static void SetObject(this ISession session, string key, object value)
{//Sets the object of a session to Object
session.SetString(key, JsonConvert.SerializeObject(value));
session.SetString(key, JsonConvert.SerializeObject(value, Formatting.None,
new JsonSerializerSettings(){
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
}
));
}
public static T GetObject<T>(this ISession session, string key)