/// <summary> /// Removes the first occurrence of a specific WsServiceOperation from the WsServiceOperations collection. /// </summary> /// <param name="serviceOperation"> /// The WsServiceOperation object to remove from the WsServiceOperations collection. /// The value can be null. /// </param> public void Remove(WsServiceOperation serviceOperation) { lock (m_threadLock) { m_serviceOperations.Remove(serviceOperation); } }
/// <summary> /// Adds an WsServiceOperation object to the end of the WsServiceOperations collection. /// </summary> /// <param name="serviceOperation"> /// The WsServiceOperation object to be added to the end of the WsServiceOperations collection. /// The value can be null. /// </param> /// <returns> /// The WsServiceOperations collection index at which the value has been added. /// </returns> public int Add(WsServiceOperation serviceOperation) { lock (m_threadLock) { return(m_serviceOperations.Add(serviceOperation)); } }
public TwoWayOperationService() { // The client filters devices when probing using the ServiceTypeName property this.ServiceTypeName = "TwoWayOperationServiceType"; // Add a unique namespace for our service this.ServiceNamespace = new WsXmlNamespace("twoWay", // prefix c_namespaceUri); // URI // Unique ID to access the service this.ServiceID = "urn:uuid:93252386-0724-c8ca-bd31-000000732d93"; // Add the two-way service operation WsServiceOperation operation = new WsServiceOperation(this.ServiceNamespace.NamespaceURI, // namespace "MyTwoWayOperation"); // operation method name this.ServiceOperations.Add(operation); }
public OneWayOperationService() { // The client filters devices when probing using the ServiceTypeName property this.ServiceTypeName = "OneWayOperationServiceType"; // Add a unique namespace for our service this.ServiceNamespace = new WsXmlNamespace("oneWay", // prefix "http://schemas.sample.org/OneWayOperationService"); // URI // Unique ID to access the service this.ServiceID = "urn:uuid:93252386-0724-c8ca-bd31-000000732d93"; // Add the one-way service operation WsServiceOperation operation = new WsServiceOperation(this.ServiceNamespace.NamespaceURI, // namespace "MyOneWayOperation"); // operation method name this.ServiceOperations.Add(operation); }
/// <summary> /// Adds an WsServiceOperation object to the end of the WsServiceOperations collection. /// </summary> /// <param name="serviceOperation"> /// The WsServiceOperation object to be added to the end of the WsServiceOperations collection. /// The value can be null. /// </param> /// <returns> /// The WsServiceOperations collection index at which the value has been added. /// </returns> public int Add(WsServiceOperation serviceOperation) { lock (m_threadLock) { return m_serviceOperations.Add(serviceOperation); } }