moved from SVN to git
This commit is contained in:
27
Data/SessionOperationContextExt.cs
Normal file
27
Data/SessionOperationContextExt.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.ServiceModel;
|
||||
|
||||
using NHibernate;
|
||||
|
||||
namespace BeWo.Data
|
||||
{
|
||||
public class SessionOperationContextExt : IExtension<OperationContext>
|
||||
{
|
||||
public static SessionOperationContextExt Current
|
||||
{
|
||||
get
|
||||
{
|
||||
return OperationContext.Current.Extensions.Find<SessionOperationContextExt>();
|
||||
}
|
||||
}
|
||||
|
||||
public ISession Session { get; set; }
|
||||
|
||||
public void Attach(OperationContext owner)
|
||||
{
|
||||
}
|
||||
|
||||
public void Detach(OperationContext owner)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user