Skip to content

Make ServiceClient methods virtual? #518

Open

Description

@cbbuild

Hello,

I would like to override the ExecuteOrganizationRequestImpl and ExecuteOrganizationRequestAsyncImpl methods in a derived class from a ServiceClient. I would like to adjust the OrganizationRequest before sending it to CRM.

Is it possible to make these methods protected virtual?

Eventually it will be great to make all IOrganizationServiceAsync2 implemented methods as virtual.

Is there another way to modify OrganizationRequest before sending it?

Activity

  1. MattB-msft commented on Aug 12, 2025

    @MattB-msft
    Member

    Could you clarify your ask.. what do you want to affect?
    we allow some control via the requestBuilder feature in the client. have you looked at that?

  2. cbbuild commented on Aug 25, 2025

    @cbbuild
    Author

    Hi.
    I wanted to add parameters to request automatically, when I use specific data service client.

    ex:
    req.Parameters.Add("parameter", value);

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