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
- hostedService
Type: Dpws.Device.Services. . :: . .DpwsHostedService
The hosted service that contains the event source.
- eventSource
Type: Dpws.Device.Services. . :: . .DpwsWseEventSource
The event source that defines the event.
- msgEvt
Type: Ws.Services.Soap. . :: . .WsMessage
The event message buffer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.