Exemple #1
0
        public ISmartService(IISmartService service, ProtocolVersion version) :
            base(version)
        {
            // Set the service implementation properties
            m_service = service;

            // Set base service properties
            ServiceNamespace = new WsXmlNamespace("ism", "http://tempuri.org/");
            ServiceID        = "urn:uuid:72e4b7b5-c0af-48e7-942b-d914719bd38e";
            ServiceTypeName  = "ISmartService";

            // Add service types here
            ServiceOperations.Add(new WsServiceOperation("http://tempuri.org/ISmartService", "GetMeasurements"));
            ServiceOperations.Add(new WsServiceOperation("http://tempuri.org/ISmartService", "CreateMeasurement"));

            // Add event sources here
        }
Exemple #2
0
 public ISmartService(IISmartService service) :
     this(service, new ProtocolVersion10())
 {
 }