|
|
@@ -10,7 +10,7 @@ namespace NTMiner.Core.Impl {
|
|
|
/// <param name="wsSessionID"></param>
|
|
|
public AbstractSession(IUser user, WsUserName userName, string wsSessionID) {
|
|
|
this.ClientId = userName.ClientId;
|
|
|
- this.ClientVersion = userName.ClientVersion;
|
|
|
+ this.ClientVersion = Version.Parse(userName.ClientVersion);// 因为前面的流程已经过验证所以可以直接Parse
|
|
|
this.LoginName = user.LoginName;
|
|
|
this.ActiveOn = DateTime.Now;
|
|
|
this.WsSessionId = wsSessionID;
|
|
|
@@ -18,7 +18,7 @@ namespace NTMiner.Core.Impl {
|
|
|
|
|
|
public Guid ClientId { get; private set; }
|
|
|
|
|
|
- public string ClientVersion { get; private set; }
|
|
|
+ public Version ClientVersion { get; private set; }
|
|
|
|
|
|
public string LoginName { get; private set; }
|
|
|
|