mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Move SessionToken.cs
This commit is contained in:
parent
a75710b501
commit
143fcf7155
8 changed files with 30 additions and 13 deletions
|
|
@ -2,11 +2,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using MinecraftClient.Protocol.Handlers;
|
||||
using MinecraftClient.Proxy;
|
||||
using System.Net.Sockets;
|
||||
using System.Net.Security;
|
||||
using MinecraftClient.Proxy;
|
||||
using MinecraftClient.Protocol.Handlers;
|
||||
using MinecraftClient.Protocol.Handlers.Forge;
|
||||
using MinecraftClient.Protocol.Session;
|
||||
|
||||
namespace MinecraftClient.Protocol
|
||||
{
|
||||
|
|
|
|||
20
MinecraftClient/Protocol/Session/CacheType.cs
Normal file
20
MinecraftClient/Protocol/Session/CacheType.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace MinecraftClient.Protocol.Session
|
||||
{
|
||||
public enum CacheType
|
||||
{
|
||||
/// <summary>
|
||||
/// Do not perform any session caching, always perform login requests from scratch.
|
||||
/// </summary>
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// Cache session information in memory to reuse session tokens across server joins.
|
||||
/// </summary>
|
||||
Memory,
|
||||
|
||||
/// <summary>
|
||||
/// Cache session information in a SessionCache file to share session tokens between different MCC instances.
|
||||
/// </summary>
|
||||
Disk
|
||||
};
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ using System.Runtime.Serialization;
|
|||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Timers;
|
||||
|
||||
namespace MinecraftClient.Protocol.SessionCache
|
||||
namespace MinecraftClient.Protocol.Session
|
||||
{
|
||||
/// <summary>
|
||||
/// Handle sessions caching and storage.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace MinecraftClient.Protocol
|
||||
namespace MinecraftClient.Protocol.Session
|
||||
{
|
||||
[Serializable]
|
||||
public class SessionToken
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
namespace MinecraftClient.Protocol.SessionCache
|
||||
{
|
||||
public enum CacheType { None, Memory, Disk };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue