public List <TransitConfiguration> GetConfigurations(string ticket, ServiceQueryOptions options) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); return(WebServiceQueryOptions <TransitConfiguration> .Apply(options, WebServiceImpl <TransitConfiguration, ManagedConfiguration, Configuration> .GetTransformedList( session, sec, ManagedConfiguration.GetAllConfigurations(session)))); } }
public TransitRssChannelItems GetAccountRssWatchItems(string ticket, int id, ServiceQueryOptions options) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); ManagedAccountRssWatch rsswatch = new ManagedAccountRssWatch(session, id); TransitRssChannelItems result = rsswatch.GetSubscriptionUpdates(sec); result.Items = WebServiceQueryOptions <TransitRssItem> .Apply(options, result.Items); return(result); } }