Share via


FireEvent Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Raises an event.

Namespace:  Dpws.Device.Services
Assembly:  MFDpwsDevice (in MFDpwsDevice.dll)

Syntax

'Declaration
Public Sub FireEvent ( _
    hostedService As DpwsHostedService, _
    eventSource As DpwsWseEventSource, _
    msgEvt As WsMessage _
)
public void FireEvent(
    DpwsHostedService hostedService,
    DpwsWseEventSource eventSource,
    WsMessage msgEvt
)
public:
void FireEvent(
    DpwsHostedService^ hostedService, 
    DpwsWseEventSource^ eventSource, 
    WsMessage^ msgEvt
)
member FireEvent : 
        hostedService:DpwsHostedService * 
        eventSource:DpwsWseEventSource * 
        msgEvt:WsMessage -> unit 
public function FireEvent(
    hostedService : DpwsHostedService, 
    eventSource : DpwsWseEventSource, 
    msgEvt : WsMessage
)

Parameters

Remarks

A device developer is responsible for building the event message buffer sent to clients that have an active event subscription with an event source. The subscription manager uses the hostedService parameter to access various properties of the service. The eventSource parameter is used to access the event sinks collection of the event source. Note: This method requires special provisions in order to properly build event message headers for each event sink. To send an event to a listening client, the soap.header.To property must be changed for each listening client. In the future, custom attribute support will solve this problem. However, currently a search and replace mechanism is used to modify the header.To property. When a device developer builds the event message buffer, they must use the search string WSDNOTIFYTOADDRESS for the To header property.

.NET Framework Security

See Also

Reference

DpwsWseSubscriptionMgr Class

Dpws.Device.Services Namespace