Table of Contents

Interface IAuthorizationEx<TSession>

Namespace
StockSharp.Server.Core
Assembly
StockSharp.Server.Core.dll

Extended version Ecng.Security.IAuthorization.

public interface IAuthorizationEx<TSession> : IAuthorization where TSession : IMessageListenerSession

Type Parameters

TSession
Extended version .
Extension Methods

Methods

Close(IMessageListenerSession)

Close session.

void Close(IMessageListenerSession session)

Parameters

session IMessageListenerSession

Session.

ValidateCredentials(string, TSession[], string, string, SecureString, IPAddress, CancellationToken)

Validate credentials.

ValueTask<(string sessionId, TSession session)> ValidateCredentials(string serverName, TSession[] sessions, string version, string login, SecureString password, IPAddress clientAddress, CancellationToken cancellationToken)

Parameters

serverName string

Server name.

sessions TSession[]

Server sessions.

version string

Client app version.

login string

Login.

password SecureString

Password.

clientAddress IPAddress

Client address.

cancellationToken CancellationToken

CancellationToken

Returns

ValueTask<(string sessionId, TSession session)>

Session ID and server session.