public void Transfer(EventErrorDescriptor @event) { var currentSession = _sessionFactory.GetCurrentSession(); currentSession.Save(@event.ToEventDescriptor()); currentSession.Delete(@event); }
public virtual EventErrorDescriptor ToErrorEventDescriptor() { var clone = new EventErrorDescriptor(EventData.Event, Header); return clone; }