System.ServiceModel.Description OperationDescription is a class in C# that represents a single operation within a service contract. It provides information and metadata about the operation, including input and output parameters, return types, and any fault messages that may be thrown.
The above code snippet can be used to get an OperationDescription object for a particular method in the contract.
Another example:
foreach (OperationDescription operation in serviceEndpoint.Contract.Operations) { if (operation.Name.Equals(operationName)) { foreach (MessageDescription inputMessage in operation.Messages) { if (inputMessage.Direction == MessageDirection.Input) { foreach (MessagePartDescription part in inputMessage.Body.Parts) { Console.WriteLine(part.Name); } } } } }
The above code snippet is used to iterate through all the operations in the service contract and retrieve information about their input messages.
System.ServiceModel.Description is a package library that is included as part of the .NET Framework. It contains classes and interfaces that enable developers to create and configure WCF services.
C# (CSharp) System.ServiceModel.Description OperationDescription - 50 examples found. These are the top rated real world C# (CSharp) examples of System.ServiceModel.Description.OperationDescription extracted from open source projects. You can rate examples to help us improve the quality of examples.