Class SoapOperationAttribute

Assembly: redb.Route.Controllers.dll

Maps a controller method to a SOAP operation — the local name of the <soap:Body> root element
the SOAP consumer surfaces on redbSoap.operation. Optional: without it the method name is the
operation. Use it when the request element name differs from the method name.

[SoapOperation("GetFares")]
public Task<GetFaresResponse> Fares([FromBody] GetFaresRequest req) => ...;

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class SoapOperationAttribute : Attribute

Inheritance

Object→Attribute→SoapOperationAttribute

Properties

Operation

The SOAP operation name.

public string Operation { get; }

Constructors