Class ServerExtensions
- Namespace
- StockSharp.Server.Core
- Assembly
- StockSharp.Server.Core.dll
Extensions.
public static class ServerExtensions
- Inheritance
-
ServerExtensions
- Inherited Members
Methods
ToCredentials(UserInfoMessage)
Convert UserInfoMessage to PermissionCredentials value.
public static PermissionCredentials ToCredentials(this UserInfoMessage message)
Parameters
message
UserInfoMessageThe message contains information about user.
Returns
- PermissionCredentials
Credentials with set of permissions.
ToUserInfoMessage(PermissionCredentials, bool)
Convert PermissionCredentials to UserInfoMessage value.
public static UserInfoMessage ToUserInfoMessage(this PermissionCredentials credentials, bool copyPassword)
Parameters
credentials
PermissionCredentialsCredentials with set of permissions.
copyPassword
boolCopy Ecng.ComponentModel.ServerCredentials.Password value.
Returns
- UserInfoMessage
The message contains information about user.