~ruther/NosTale-Gfless

ref: 2a270dbe0dd48e0b64fdd9993ea7adba93112bd8 NosTale-Gfless/NosTaleGfless/NostaleProcess.cs -rw-r--r-- 683 bytes
2a270dbe — František Boháček fix: raise process exited event 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Diagnostics;
using NostaleAuth.Models;

namespace NosTaleGfless
{
    public class NostaleProcess
    {
        public NostaleProcess(Process process, GameforgeAccount account)
        {
            Account = account;
            Process = process;
        }
        
        public Process Process { get; }

        public int ProcessId => Process.Id;
        
        public string SessionToken { get; set; }
        
        public GameforgeAccount Account { get; }
        
        public Guid? SessionId { get; internal set; }
        
        public bool Initialized { get; internal set; }

        public bool HasExited => Process.HasExited;
    }
}