Table of Contents

Class PermissionCredentialsExtensions

Namespace
StockSharp.Configuration.Permissions
Assembly
StockSharp.Configuration.dll

Extensions.

public static class PermissionCredentialsExtensions
Inheritance
PermissionCredentialsExtensions
Inherited Members

Methods

GetAllAsync(IPermissionCredentialsStorage)

Get all credentials.

public static IAsyncEnumerable<PermissionCredentials> GetAllAsync(this IPermissionCredentialsStorage storage)

Parameters

storage IPermissionCredentialsStorage

The storage to be used.

Returns

IAsyncEnumerable<PermissionCredentials>

All stored credentials.

ToCredentials(UserInfoMessage)

public static PermissionCredentials ToCredentials(this UserInfoMessage message)

Parameters

message UserInfoMessage

The message contains information about user.

Returns

PermissionCredentials

Credentials with set of permissions.

ToUserInfoMessage(PermissionCredentials, bool)

public static UserInfoMessage ToUserInfoMessage(this PermissionCredentials credentials, bool copyPassword)

Parameters

credentials PermissionCredentials

Credentials with set of permissions.

copyPassword bool

Copy Password value.

Returns

UserInfoMessage

The message contains information about user.

TryGetByLoginAsync(IPermissionCredentialsStorage, string, CancellationToken)

Find credentials by exact login.

public static ValueTask<PermissionCredentials> TryGetByLoginAsync(this IPermissionCredentialsStorage storage, string login, CancellationToken cancellationToken = default)

Parameters

storage IPermissionCredentialsStorage

Credentials storage.

login string

Login.

cancellationToken CancellationToken

Cancellation token.

Returns

ValueTask<PermissionCredentials>

Credentials with permissions or null if not found.