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
stringFile name.
Properties
Credentials
Credentials.
public PermissionCredentials[] Credentials { get; set; }
Property Value
Methods
Add(PermissionCredentials)
Add new credentials.
public void Add(PermissionCredentials credentials)
Parameters
credentials
PermissionCredentialsCredentials with set of permissions.
DeleteByLogin(string)
Delete credentials by login.
public bool DeleteByLogin(string login)
Parameters
login
stringLogin.
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
stringLogin.
Returns
- PermissionCredentials
Credentials with set of permissions.