Add IActivator<T> custom activators documentation for Orleans#51857
Draft
ReubenBond wants to merge 4 commits intodotnet:mainfrom
Draft
Add IActivator<T> custom activators documentation for Orleans#51857ReubenBond wants to merge 4 commits intodotnet:mainfrom
ReubenBond wants to merge 4 commits intodotnet:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a work-in-progress. We had some discussions on the discord server this morning about gaps in the docs when it comes to advanced serialization scenarios and so this PR tries to address the gaps we identified. I used copilot to write the doc, grounded in the orleans codebase, and I need to refine it before it's ready to be merged.
Summary
Adds a new documentation page covering the
IActivator<T>interface and[RegisterActivator]attribute in Orleans serialization. This feature allows developers to control how objects are constructed during deserialization.Changes
docs/orleans/host/configuration-guide/custom-activators.mdsnippets/custom-activators/with a .csproj and 4 .cs filesContent
The doc covers:
IActivator<T>is and when to use it[UseActivator]and[RegisterActivator]attributesObjectPool<T>All snippet files compile against
Microsoft.Orleans.Sdk 9.0.0(net9.0).Internal previews