How to read state blazor_server_side?

Posted 42 days ago by lingo1357


How to read state  blazor_server_side?

This code doesn't work for me and a red line appears under it.

Should I change any part?

You can see my code here:

const string stateFile = "state.bin";
            if (File.Exists(stateFile))
                              message = "Loading state from file";

                using (var fs = File.OpenRead(stateFile))
                    _instaApi.LoadStateDataFromString(new StreamReader(fs).ReadToEnd());

Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 1
An error has occurred. This application may no longer respond until reloaded. Reload 🗙