Skip to content

Passing other arguments to HandleRequestLogged #166

Description

@vickyRathee

I'm using a multithreaded system and need to pass useragent, referer, proxy etc to HandleRequestLogged but the Action method is not supporting anything except Browser and HttpRequestLog

browser.RequestLogged += new Action<Browser, HttpRequestLog>(RequestViaBrowser.HandleRequestLogged);

public static void HandleRequestLogged(Browser req, HttpRequestLog log)
{
 statusCode = log.ResponseCode.ToString();
}

Is there a way i can pass my class, strings etc like this?

browser.RequestLogged += new Action<Browser, HttpRequestLog, MyClass, MyString>(RequestViaBrowser.HandleRequestLogged);

And receive like this to get my data here and use

public static void HandleRequestLogged(Browser req, HttpRequestLog log, class MyClass, Mystring)
{
statusCode = log.ResponseCode.ToString();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions