protected override void RpcProcessRecord() { AccountManagerRpcReply reply = RpcClient.AccountManagerAttach(Url, UserName, Password, CancellationToken.None); if (reply.ErrorCode != ErrorCode.Success) { throw new Exception(string.Format("Account manager operation failed. Error code: {0}. Error message: {1}", reply.ErrorCode, string.Join(" ", reply.Messages))); } }
protected override void RpcProcessRecord() { if (!ShouldProcess(BoincSession.Host)) { return; } AccountManagerRpcReply reply = RpcClient.AccountManagerAttach(string.Empty, string.Empty, string.Empty, CancellationToken.None); if (reply.ErrorCode != ErrorCode.Success) { throw new Exception(string.Format("Account manager operation failed. Error code: {0}. Error message: {1}", reply.ErrorCode, string.Join(" ", reply.Messages))); } }