Class EventsServiceKnownTypesLookup
Class for retrieving all types decorated with the EventsServiceKnownTypeAttribute used to DataContract serialization of event messages.
Inheritance
System.Object
EventsServiceKnownTypesLookup
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Events
Assembly: EPiServer.Events.dll
Version: 11.20.7Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class EventsServiceKnownTypesLookup
Constructors
EventsServiceKnownTypesLookup(ITypeScannerLookup)
Initializes a new instance of the EventsServiceKnownTypesLookup class.
Declaration
public EventsServiceKnownTypesLookup(ITypeScannerLookup typeScanner)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeScannerLookup | typeScanner | The type scanner used. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if the typeScanner parameter is null. |
Properties
KnownTypes
Gets all types that has been decorated with the EventsServiceKnownTypeAttribute.
Declaration
public virtual IEnumerable<Type> KnownTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Type> |
Methods
GetKnownTypes(ICustomAttributeProvider)
Gets the known types for the IEventReplication service.
Declaration
public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.ICustomAttributeProvider | provider | The custom attribute provider |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Type> | The known types for the "IEventReplication" service |
Remarks
This method is used for defining ServiceKnownTypes for the IEventReplication service, see the MSDN documentation for ServiceKnownTypeAttribute (http://msdn.microsoft.com/en-us/library/ms554667.aspx) for usage information