Table of Contents

Class PermissionCredentialsStorage

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

Storage for PermissionCredentials.

public class PermissionCredentialsStorage
Inheritance
PermissionCredentialsStorage
Inherited Members
Extension Methods

Constructors

PermissionCredentialsStorage(string)

Initializes a new instance of the PermissionCredentialsStorage.

public PermissionCredentialsStorage(string fileName)

Parameters

fileName string

File name.

Properties

Credentials

Credentials.

public PermissionCredentials[] Credentials { get; set; }

Property Value

PermissionCredentials[]

Methods

Add(PermissionCredentials)

Add new credentials.

public void Add(PermissionCredentials credentials)

Parameters

credentials PermissionCredentials

Credentials with set of permissions.

DeleteByLogin(string)

Delete credentials by login.

public bool DeleteByLogin(string login)

Parameters

login string

Login.

Returns

bool

Operation result.

LoadCredentials()

Load credentials from file.

public void LoadCredentials()

SaveCredentials()

Save credentials to file.

public void SaveCredentials()

TryGetByLogin(string)

Get credentials by login.

public virtual PermissionCredentials TryGetByLogin(string login)

Parameters

login string

Login.

Returns

PermissionCredentials

Credentials with set of permissions.