Class EventReplicationWCFProviders
The EventReplicationWCFProviders class reads all Endpoint in webconfig and create an EventReplicationProvider class for each. Befor creating the EventReplicationProvider it sends an Credential event if some one will put username and password for the proxy.
Inheritance
System.Object
EventReplicationWCFProviders
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.Remote
Assembly: EPiServer.Events.dll
Version: 8.11.0Syntax
public class EventReplicationWCFProviders
Constructors
EventReplicationWCFProviders()
Declaration
public EventReplicationWCFProviders()
Properties
Instance
Gets the instance.
Declaration
public static EventReplicationWCFProviders Instance { get; }
Property Value
Type | Description |
---|---|
EventReplicationWCFProviders | The instance. |
Methods
AddEventReplicationProvider(String, EventReplicationProvider)
Adds the EventReplication WCF provider.
Declaration
public void AddEventReplicationProvider(string endPointName, EventReplicationProvider eventRepl)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPointName | End name of the point. |
EventReplicationProvider | eventRepl | The event repl. |
InitializeEventReplicationProviders()
Initializes the event replication providers. Iterate all Endpoints and try to create EventReplication WCF provider
Declaration
public void InitializeEventReplicationProviders()
RaiseEvent(EventMessage)
Raises the event.
Declaration
public void RaiseEvent(EventMessage message)
Parameters
Type | Name | Description |
---|---|---|
EventMessage | message | The message. |
TryRaiseEvent(EventReplicationProvider, EventMessage)
Tries the raise event. Return false if occurs CommunicationException when try to raise event by proxy.
Declaration
protected virtual bool TryRaiseEvent(EventReplicationProvider eventReplicationProvider, EventMessage message)
Parameters
Type | Name | Description |
---|---|---|
EventReplicationProvider | eventReplicationProvider | The event replication provider. |
EventMessage | message | The message. |
Returns
Type | Description |
---|---|
System.Boolean |
UnInitializeEventReplicationProviders()
Clear the EndPoint and Event Replication Providers.
Declaration
public void UnInitializeEventReplicationProviders()
Events
CredentialsEvent
Occurs when [credentials event].
Declaration
public static event EventHandler<CredentialsEventArg> CredentialsEvent
Event Type
Type | Description |
---|---|
System.EventHandler<CredentialsEventArg> |