private void RaiseSessionStatusChangedAndTrace(MeterSessionStatus sessionStatus, string message) { sessionTracer.AppendLine(message); SessionStatusChanged?.Invoke(this, new SessionStatusChangedEventArgs() { SessionStatus = sessionStatus, CurrentSessionTrace = sessionTracer.ToString() }); }
private void Session_SessionStatusChanged(object sender, SessionStatusEventArgs e) { var sse = convertO2GSessionStatusCodeToSessionStatusEnum(e.SessionStatus); SessionStatusChanged?.Invoke(this, new SessionStatusChangedEventArgs() { SessionStatus = sse }); }
public DataManager(IDataProvider dataProvider, IDataBase dataBase) { this.dataProvider = dataProvider; repository = dataBase; dataProvider.SessionStatusChanged += (object sender, SessionStatusChangedEventArgs e) => SessionStatusChanged?.Invoke(sender, e); dataProvider.RealTimeDataUpdated += (object sender, RealTimeDataUpdatedEventArgs e) => RealTimeDataUpdated?.Invoke(sender, e); }
public void OnSessionStatusChanged(bool started, Exception e) { SessionStatusChanged?.Invoke(_accountID, started, e); }
protected void OnSessionStatusChanged(SessionStatusChangedEventArgs args) { SessionStatusChanged?.Invoke(this, args); }