Skip to content

Allow overriding of Objective-C message send P/Invokes#47721

Merged
elinor-fung merged 5 commits intodotnet:feature/objc-interopfrom
elinor-fung:msgSendOverride
Feb 2, 2021
Merged

Allow overriding of Objective-C message send P/Invokes#47721
elinor-fung merged 5 commits intodotnet:feature/objc-interopfrom
elinor-fung:msgSendOverride

Conversation

@elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Feb 1, 2021

  • Add Bridge.SetMessageSendCallback
  • If message send functions are set, use P/Invoke override to redirect to specified function(s)

@AaronRobinsonMSFT
Copy link
Member

So many "P/Inovkes"!

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

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

LGTM

FCClassElement("AssemblyLoadContext", "System.Runtime.Loader", gAssemblyLoadContextFuncs)

FCClassElement("AssemblyName", "System.Reflection", gAssemblyNameFuncs)
#ifdef FEATURE_OBJCWRAPPERS
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to keep the name FEATURE_OBJCWRAPPERS now that we've renamed the API?

Copy link
Member Author

Choose a reason for hiding this comment

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

FEATURE_OBJCBRIDGE?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll do a follow-up change of renaming the define and deleting the current Wrappers class (and friends).

Copy link
Member

Choose a reason for hiding this comment

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

I like that name.

@elinor-fung elinor-fung changed the title Allow overriding of Objective-C message send P/Inovkes Allow overriding of Objective-C message send P/Invokes Feb 2, 2021
@elinor-fung elinor-fung merged commit 60825f0 into dotnet:feature/objc-interop Feb 2, 2021
@elinor-fung elinor-fung deleted the msgSendOverride branch February 2, 2021 19:39
@elinor-fung elinor-fung added this to the 6.0.0 milestone Feb 2, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Mar 4, 2021
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.

4 participants