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
Inherited Members
Namespace: EPiServer.Events.Remote
Assembly: EPiServer.Events.dll
Version: 7.19.2Syntax
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. |
RaiseEvent(Guid, String, Int32, Byte[], Guid, Object)
Raises the event.
Declaration
[Obsolete("Use overloaded RaiseEvent with EventMessage arguments instead", true)]
public void RaiseEvent(Guid raiserId, string siteId, int sequenceNumber, byte[] verificationData, Guid eventId, object param)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | raiserId | The raiser id. |
System.String | siteId | The site id. |
System.Int32 | sequenceNumber | The sequence number. |
System.Byte[] | verificationData | The verification data. |
System.Guid | eventId | The event id. |
System.Object | param | The param. |
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 |
TryRaiseEvent(EventReplicationProvider, Guid, String, Int32, Byte[], Guid, Object)
Tries the raise event. Return false if occurs CommunicationException when try to raise event by proxy.
Declaration
[Obsolete("Use overloaded TryRaiseEvent with EventMessage arguments instead", true)]
protected virtual bool TryRaiseEvent(EventReplicationProvider eventReplProvider, Guid raiserId, string siteId, int sequenceNumber, byte[] verificationData, Guid eventId, object param)
Parameters
Type | Name | Description |
---|---|---|
EventReplicationProvider | eventReplProvider | The event repl provider. |
System.Guid | raiserId | The raiser id. |
System.String | siteId | The site id. |
System.Int32 | sequenceNumber | The sequence number. |
System.Byte[] | verificationData | The verification data. |
System.Guid | eventId | The event id. |
System.Object | param | The param. |
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> |