Table of Contents

Class ResponseExtensions

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public static class ResponseExtensions
Inheritance
ResponseExtensions
Inherited Members

Methods

Deconstruct(Response, out Response, out object)

Used for pattern matching via (response,message)

public static void Deconstruct(this Response response, out Response context, out object message)

Parameters

response Response
context Response
message object

IsResponseAccepted<T>(ConsumeContext, bool)

Returns true if the response type is explicitly accepted, or if the accept response header is not present (downlevel client).

public static bool IsResponseAccepted<T>(this ConsumeContext context, bool defaultIfHeaderNotFound = true) where T : class

Parameters

context ConsumeContext

The consumed message context

defaultIfHeaderNotFound bool

Value to return if header was not present

Returns

bool

True if explicitly support or header is missing, otherwise false

Type Parameters

T

The response type