/// <summary> /// Send Error message /// </summary> /// <param name="severity"></param> /// <param name="message">The message.</param> /// <param name="fundid"></param> public void Log(LogLevel severity, string message, string fundid = "") { //Send to user log _userlog.Log(severity, message); //Send as message EventRunner.Enqueue(LoggingMessage.Create(fundid, message, severity.Name)); }
/// <summary> /// Removes the quant fund from this portfolio. /// </summary> /// <param name="quantfund">The quantfund.</param> /// <exception cref="NotImplementedException"></exception> public void RemoveFund(IQuantFund quantfund) { throw new NotImplementedException(); //Send updates (so we know this quant fund was remvoved) EventRunner.Enqueue(FundInfoMessage.Generate(Id, quantfund), true); //Remove funds CashManager.RemoveQuantFund(quantfund); }