27 lines
570 B
C#
27 lines
570 B
C#
using BS.Shared.Core;
|
|
using BS.Shared.Exceptions;
|
|
using System.ServiceModel;
|
|
|
|
namespace BeWo.Data
|
|
{
|
|
public class MultitenancyOperationContextExt : IExtension<OperationContext>
|
|
{
|
|
public static MultitenancyOperationContextExt Current
|
|
{
|
|
get
|
|
{
|
|
return OperationContext.Current != null ? OperationContext.Current.Extensions.Find<MultitenancyOperationContextExt>() : null;
|
|
}
|
|
}
|
|
|
|
public string Tenant { get; set; }
|
|
|
|
public void Attach(OperationContext owner)
|
|
{
|
|
}
|
|
|
|
public void Detach(OperationContext owner)
|
|
{
|
|
}
|
|
}
|
|
} |