The object instance is different between the two calls. Unless you make the property static
to hold a reference to the same object, it will be newly created each time you hit the endpoint.
More Related Contents:
- System.IndexOutOfRangeException: Cannot find table 0
- How to Deserialize XML document
- How to enable external request in IIS Express?
- Import and Export Excel – What is the best library? [closed]
- How do I enable NuGet Package Restore in Visual Studio?
- Why Interface Layer/Abstract classes required in our project? [closed]
- C# ASP.NET Single Sign-On Implementation
- How do I get the access token from a blazor (server-side) web app?
- Write PDF stream to response stream
- How to set attributes values using reflection
- CallContext vs ThreadStatic
- How do you bind an Enum to a DropDownList control in ASP.NET?
- Writing file to web server – ASP.NET
- How to debug a single thread in Visual Studio?
- ConfigurationManager.AppSettings getting null?
- How can I get the baseurl of site?
- MEF with MVC 4 or 5 – Pluggable Architecture (2014)
- How do I force full post-back from a button within an UpdatePanel?
- How require authorization within whole ASP .NET MVC application
- Registering an Application to a URI Scheme in windows 10
- How do you post a JSON file to an ASP.NET MVC Action?
- What is the difference between Debug Mode and Release Mode in Visual Studio 2010? [duplicate]
- System.web.mvc missing
- How to route EVERYTHING other than Web API to /index.html
- Document.Ready() is not working after PostBack
- How can I ensure that appsettings.dev.json gets copied to the output folder?
- How to add config transformations for a custom config file in Visual Studio?
- Sort two Lists together as one?
- The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.
- Getting system Timezones in different languages