Jump to content

[C#/Serverside] How to save data when the server shutdowns


Zockermichi125

Recommended Posts

Hello everyone,

my question is about how can i save data on a server shutdown in C# Serverside?

I have read a lot a stuff about this but i haven't found any solution which was for my a solution which i can
use in a production envoriment with a lot of players.

I tried already the following things:
- I saved data based on a timer
- Use other events like player disconnected and then i save the data

I also tries a lots of things on my own like:
- Use the internal delegate (event) for shutting down a application (AppDomain.CurrentDomain.ProcessExit)
- Holding Threads to execute code

So does anyone have a good solution for this issue? Nothing of my ideas are running so i am very dissatisfied with this topic but in my opion is
very important to develop a very stable system.

Best Regards
Zockermichi125

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...