Class JwtHeaderMessageInspector
- Namespace
- Steeltoe.Security.Authentication.CloudFoundry.Wcf
- Assembly
- Steeltoe.Security.Authentication.CloudFoundryWcf.dll
public class JwtHeaderMessageInspector : IClientMessageInspector
- Inheritance
-
JwtHeaderMessageInspector
- Implements
- Inherited Members
Constructors
JwtHeaderMessageInspector(CloudFoundryOptions, string, HttpClient)
public JwtHeaderMessageInspector(CloudFoundryOptions options, string userToken, HttpClient httpClient = null)
Parameters
optionsCloudFoundryOptionsuserTokenstringhttpClientHttpClient
Methods
AfterReceiveReply(ref Message, object)
Enables inspection or modification of a message after a reply message is received but prior to passing it back to the client application.
public void AfterReceiveReply(ref Message reply, object correlationState)
Parameters
replyMessageThe message to be transformed into types and handed back to the client application.
correlationStateobjectCorrelation state data.
BeforeSendRequest(ref Message, IClientChannel)
Enables inspection or modification of a message before a request message is sent to a service.
public object BeforeSendRequest(ref Message request, IClientChannel channel)
Parameters
requestMessageThe message to be sent to the service.
channelIClientChannelThe WCF client object channel.
Returns
- object
The object that is returned as the
correlationStateargument of the AfterReceiveReply(ref Message, object) method. This is null if no correlation state is used.The best practice is to make this a Guid to ensure that no twocorrelationStateobjects are the same.