Skip to content

Conversation

@elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Apr 30, 2020

Keep registered global instance of ComWrappers for reference tracker support separate from global instance for marshalling.

On ComWrappers, replace

public void RegisterAsGlobalInstance();

with two separate methods for registration:

public static void RegisterForTrackerSupport(ComWrappers instance);
public static void RegisterForMarshalling(ComWrappers instance);

Resolves #35530

cc @AaronRobinsonMSFT @jkoritzinsky @jkotas

@Dotnet-GitSync-Bot
Copy link
Collaborator

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@elinor-fung elinor-fung force-pushed the comWrappers-globalSplit branch from 80e74a6 to 44cf9b2 Compare April 30, 2020 23:18
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 5.0 milestone May 2, 2020
@elinor-fung elinor-fung merged commit e3c7444 into dotnet:master May 5, 2020
@elinor-fung elinor-fung deleted the comWrappers-globalSplit branch May 5, 2020 01:57
@jtbrower jtbrower mentioned this pull request Jun 6, 2020
13 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComWrappers API does not provide a mechanism to identify when it is called from old-style APIs

4 participants