Files
BeWoPlaner/Data/SessionOperationContextExt.cs

27 lines
639 B
C#
Raw Permalink Normal View History

2016-06-27 01:45:38 +02:00
using System.ServiceModel;
using NHibernate;
namespace BeWo.Data
{
public class SessionOperationContextExt : IExtension<OperationContext>
{
public static SessionOperationContextExt Current
{
get
{
2016-07-18 06:14:17 +02:00
return OperationContext.Current == null ? null : OperationContext.Current.Extensions.Find<SessionOperationContextExt>();
2016-06-27 01:45:38 +02:00
}
}
public ISession Session { get; set; }
public void Attach(OperationContext owner)
{
}
public void Detach(OperationContext owner)
{
}
}
}