Example #1
0
 /// <summary>
 /// Retrives the ISession instance from <see cref="RailsEngineContextAdapter"/>.
 /// and invokes <see cref="ICustomSessionFactory.PersistSession"/>
 /// </summary>
 public override void OnRailsContextDiscarded(IRailsEngineContext context, IServiceProvider serviceProvider)
 {
     customSession.PersistSession(context.Session, context);
 }
 /// <summary>
 /// Retrives the ISession instance from <see cref="IEngineContext"/>.
 /// and invokes <see cref="ICustomSessionFactory.PersistSession"/>
 /// </summary>
 private void OnReleaseSessionState(IEngineContext context)
 {
     customSession.PersistSession(context.Session, context);
 }