aboutsummaryrefslogtreecommitdiff
path: root/Libs/VNLib.Plugins.Essentials.Sessions.Runtime/ISessionIdFactory.cs
blob: 1e88e5c440e41fa0183940270827a61e2e1c9d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Diagnostics.CodeAnalysis;

using VNLib.Net.Http;

namespace VNLib.Plugins.Essentials.Sessions
{
    public interface ISessionIdFactory
    {
        /// <summary>
        /// Attempts to recover a session-id from the connection
        /// </summary>
        /// <param name="entity">The connection to process</param>
        /// <param name="sessionId"></param>
        /// <returns></returns>
        bool TryGetSessionId(IHttpEvent entity, [NotNullWhen(true)] out string? sessionId);
    }
}