Skip to content

oDataFeed.BeforeRequest not triggered #9

@parcae

Description

@parcae

I'm using the Simple.OData module to try to connect to an OData service. The service needs authentication to connect.
I have registered the BeforeRequest event to set the neccesary headers before doing any request.

However, my BeforeRequest is not triggerd at all.
See my code below, am I missing something?

public void GetData()
{
var oDataFeed = new ODataFeed(ApiBaseUrl);
oDataFeed.BeforeRequest += BeforeRequest;
oDataFeed.AfterResponse += AfterResponse;

        Context = Database.Opener.Open(ApiBaseUrl);
        // do some more

}

private void BeforeRequest(HttpRequestMessage httpRequestMessage)
{
// add headers.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions