public virtual WsMessage SimpleEvent(WsMessage request)
        {
            // Build request object
            SimpleEventRequestDataContractSerializer reqDcs;
            reqDcs = new SimpleEventRequestDataContractSerializer("SimpleEventRequest", "http://schemas.example.org/EventingService");
            SimpleEventRequest req;
            req = ((SimpleEventRequest)(reqDcs.ReadObject(request.Reader)));

            // Call service operation to process request.
            m_eventHandler.SimpleEvent(req);

            // Return null response for event callback messages
            return null;
        }
        public virtual WsMessage SimpleEvent(WsMessage request)
        {
            // Build request object
            SimpleEventRequestDataContractSerializer reqDcs;

            reqDcs = new SimpleEventRequestDataContractSerializer("SimpleEventRequest", "http://schemas.example.org/EventingService");
            SimpleEventRequest req;

            req = ((SimpleEventRequest)(reqDcs.ReadObject(request.Reader)));

            // Call service operation to process request.
            m_eventHandler.SimpleEvent(req);

            // Return null response for event callback messages
            return(null);
        }
        public virtual void SimpleEvent(SimpleEventRequest eventReq)
        {

            // Create temp event source object, set the event action and create the event header
            DpwsWseEventSource eventSource;
            eventSource = EventSources["SimpleEvent"];
            String action;
            action = "http://schemas.example.org/EventingService/SimpleEvent";
            WsWsaHeader header;
            header = new WsWsaHeader(action, null, null, null, null, null);
            WsMessage msg = new WsMessage(header, eventReq, WsPrefix.Wse);

            // Create event serializer and write the event object
            SimpleEventRequestDataContractSerializer eventDcs;
            eventDcs = new SimpleEventRequestDataContractSerializer("SimpleEventRequest", "http://schemas.example.org/EventingService");
            msg.Serializer = eventDcs;

            // Fire event
            Dpws.Device.Device.SubscriptionManager.FireEvent(this, eventSource, msg);
        }
        public virtual void SimpleEvent(SimpleEventRequest eventReq)
        {
            // Create temp event source object, set the event action and create the event header
            DpwsWseEventSource eventSource;

            eventSource = EventSources["SimpleEvent"];
            String action;

            action = "http://schemas.example.org/EventingService/SimpleEvent";
            WsWsaHeader header;

            header = new WsWsaHeader(action, null, null, null, null, null);
            WsMessage msg = new WsMessage(header, eventReq, WsPrefix.Wse);

            // Create event serializer and write the event object
            SimpleEventRequestDataContractSerializer eventDcs;

            eventDcs       = new SimpleEventRequestDataContractSerializer("SimpleEventRequest", "http://schemas.example.org/EventingService");
            msg.Serializer = eventDcs;

            // Fire event
            Dpws.Device.Device.SubscriptionManager.FireEvent(this, eventSource, msg);
        }