Skip to content

Conversation

Horusiath
Copy link
Contributor

Just like in case of Akka, I've added attribute annotations for parts of the API which are not stable (ApiMayChange) or shouldn't be treated as public even thou they are (because of .NET limitations). Regarding latter, I've annotated only those members/types which have either public/protected/not-set encapsulation. I didn't bother to add InternalApi to internal types, as this would be redundant.

Those attributes could be possibly used and leveraged in future by static analysis tools to make sure users are not unintentionally using private parts of Akka.NET API.

@alexvaluyskiy
Copy link
Contributor

I like this change.
We have a repository for static analyzers: https://github.com/AkkaNetContrib/AkkaAnalyzer

I think we should not use InternalApi for internal types. If you can make an internal type - just do it. If you can't - use this attribute

@Aaronontheweb Aaronontheweb merged commit c2f1008 into akkadotnet:dev Sep 15, 2017
@Aaronontheweb Aaronontheweb added this to the 1.3.2 milestone Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants