Files
BeWoPlaner/Data/MultitenancyOperationContextExt.cs

27 lines
570 B
C#
Raw Permalink Normal View History

2025-06-10 14:29:34 +02:00
using BS.Shared.Core;
using BS.Shared.Exceptions;
using System.ServiceModel;
2016-06-27 01:45:38 +02:00
namespace BeWo.Data
{
2025-06-10 14:29:34 +02:00
public class MultitenancyOperationContextExt : IExtension<OperationContext>
{
public static MultitenancyOperationContextExt Current
{
get
{
2016-06-27 01:45:38 +02:00
return OperationContext.Current != null ? OperationContext.Current.Extensions.Find<MultitenancyOperationContextExt>() : null;
2025-06-10 14:29:34 +02:00
}
}
2016-06-27 01:45:38 +02:00
2025-06-10 14:29:34 +02:00
public string Tenant { get; set; }
2016-06-27 01:45:38 +02:00
2025-06-10 14:29:34 +02:00
public void Attach(OperationContext owner)
{
}
2016-06-27 01:45:38 +02:00
2025-06-10 14:29:34 +02:00
public void Detach(OperationContext owner)
{
}
}
2016-06-27 01:45:38 +02:00
}