32
Views
1
Comments
Using HttpRequestMessage and IEnumerable
Question

I have a method that I want to include in an Extension that includes the following signature:

public void MssMyMethod(RCAmazonTokenRecord sstoken, HttpRequestMessage ssrequest, IEnumerable<string> sssignedHeaders, out string sscanonicalRequest){}

How do I use the HttpRequestMessage and IEnumerable<string> as inputs in the Extension, as these are not available types?


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Colin,

An extension method can only have OutSystems types as input parameters, not .NET- or Java-specific ones. So an IENumberable is unfortunately out of the question. You should pass a Record List or List, and enumerate that.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.