public string GetScheduleString(string ticket, TransitSchedule schedule, long offsetTicks) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); ManagedSchedule m_schedule = new ManagedSchedule(session, schedule.GetInstance(session, sec)); return(m_schedule.ToString(new TimeSpan(offsetTicks))); } }
public string GetScheduleString(string ticket, TransitSchedule schedule, long offsetTicks) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); ManagedSchedule m_schedule = new ManagedSchedule(session, schedule.GetInstance(session, sec)); return m_schedule.ToString(new TimeSpan(offsetTicks)); } }