Added automatic saving and restoration of RunnerManager sessions

This commit is contained in:
ruri
2020-03-23 03:59:37 +01:00
parent c8c3b267b3
commit 1a2b938cc8
8 changed files with 99 additions and 17 deletions
+23
View File
@@ -0,0 +1,23 @@
using RuriLib.Runner;
using System;
namespace RuriLib.Models
{
/// <summary>
/// Contains the essential information of a Runner Session.
/// </summary>
public class RunnerSessionData : Persistable<Guid>
{
/// <summary>The name of the selected Config.</summary>
public string Config { get; set; } = "";
/// <summary>The name of the selected Wordlist.</summary>
public string Wordlist { get; set; } = "";
/// <summary>The amount of bots selected.</summary>
public int Bots { get; set; } = 1;
/// <summary>The proxy mode selected.</summary>
public ProxyMode ProxyMode { get; set; } = ProxyMode.Default;
}
}
+1
View File
@@ -285,6 +285,7 @@
<Compile Include="Models\DataPool.cs" />
<Compile Include="Models\Persistable.cs" />
<Compile Include="Models\ProxyResult.cs" />
<Compile Include="Models\RunnerSessionData.cs" />
<Compile Include="Models\Stats\ProxyManagerStats.cs" />
<Compile Include="Models\ProxyPool.cs" />
<Compile Include="Models\RemoteProxySource.cs" />