Class ServiceBehaviorContext<TServiceContract>
The default implementation of a service behavior context.
Inheritance
System.Object
System.Dynamic.DynamicObject
ServiceBehaviorContext<TServiceContract>
Implements
IServiceBehaviorContext<TServiceContract>
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Services.Behaviors
Assembly: Kephas.Core.dll
Syntax
public class ServiceBehaviorContext<TServiceContract> : Context, IServiceBehaviorContext<TServiceContract>, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable where TServiceContract : class
Type Parameters
Name | Description |
---|---|
TServiceContract | Type of the service contract. |
Constructors
| Improve this Doc View SourceServiceBehaviorContext(ICompositionContext, TServiceContract, Object, IContext)
Initializes a new instance of the ServiceBehaviorContext<TServiceContract> class.
Declaration
public ServiceBehaviorContext(ICompositionContext compositionContext, TServiceContract service, object metadata = null, IContext context = null)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | The composition context. |
TServiceContract | service | The service. |
System.Object | metadata | The metadata (optional). |
IContext | context | Context for the behavior (optional). |
ServiceBehaviorContext(ICompositionContext, IExportFactory<TServiceContract>, IContext)
Initializes a new instance of the ServiceBehaviorContext<TServiceContract> class.
Declaration
public ServiceBehaviorContext(ICompositionContext compositionContext, IExportFactory<TServiceContract> serviceFactory, IContext context = null)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | The composition context. |
IExportFactory<TServiceContract> | serviceFactory | The service export factory. |
IContext | context | Context for the behavior (optional). |
Properties
| Improve this Doc View SourceContext
Gets the behavior context.
Declaration
public IContext Context { get; }
Property Value
Type | Description |
---|---|
IContext | The behavior context. |
Metadata
Gets the service metadata.
Declaration
public object Metadata { get; }
Property Value
Type | Description |
---|---|
System.Object | The service metadata. |
Service
Gets the service.
Declaration
public TServiceContract Service { get; }
Property Value
Type | Description |
---|---|
TServiceContract | The service. |
ServiceFactory
Gets the service factory.
Declaration
public IExportFactory<TServiceContract> ServiceFactory { get; }
Property Value
Type | Description |
---|---|
IExportFactory<TServiceContract> | The service factory. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable