Skip to content
This repository has been archived by the owner on Aug 16, 2018. It is now read-only.

Commit

Permalink
Mark NHibernateSession and related as obsolete, see sharparchitecture#61
Browse files Browse the repository at this point in the history
  • Loading branch information
cd21h committed May 30, 2015
1 parent e09d7b9 commit c298642
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Solutions/SharpArch.NHibernate/ISessionStorage.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
namespace SharpArch.NHibernate
{
using System;
using System.Collections.Generic;

using global::NHibernate;

[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
public interface ISessionStorage
{
IEnumerable<ISession> GetAllSessions();
Expand Down
1 change: 1 addition & 0 deletions Solutions/SharpArch.NHibernate/NHibernateInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/// In a web context, it should be invoked from Application_BeginRequest with the NHibernateSession.Init()
/// function being passed as a parameter to InitializeNHiberate()
/// </summary>
[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
public class NHibernateInitializer
{
private static readonly object SyncLock = new object();
Expand Down
4 changes: 3 additions & 1 deletion Solutions/SharpArch.NHibernate/SimpleSessionStorage.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
namespace SharpArch.NHibernate
{
using System;
using System.Collections.Generic;

using global::NHibernate;


[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
public class SimpleSessionStorage : ISessionStorage
{
private readonly Dictionary<string, ISession> storage = new Dictionary<string, ISession>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
namespace SharpArch.NHibernate.Wcf
{
using System;
using System.Collections.Generic;
using System.ServiceModel;

using global::NHibernate;

using NHibernate;


[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
internal class SessionInstanceExtension : IExtension<InstanceContext>, ISessionStorage
{
private readonly SimpleSessionStorage storage = new SimpleSessionStorage();
Expand Down
1 change: 1 addition & 0 deletions Solutions/SharpArch.NHibernate/Wcf/WcfSessionStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace SharpArch.NHibernate.Wcf

using global::NHibernate;

[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
public class WcfSessionStorage : ISessionStorage
{
private ISessionStorage fallbackSessionStorage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace SharpArch.NHibernate.Web.Mvc

using global::NHibernate;

[Obsolete("Use NHibernateSessionFacgtoryBuilder")]
public class WebSessionStorage : ISessionStorage
{
private const string HttpContextSessionStorageKey = "HttpContextSessionStorageKey";
Expand Down

0 comments on commit c298642

Please sign in to comment.