Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka.Streams GraphStage.InitialAttributes is injected to the end of the Module.Attributes #5388

Open
Arkatufus opened this issue Nov 16, 2021 · 2 comments

Comments

@Arkatufus
Copy link
Contributor

Version Information
Version of Akka.NET?
1.4.28
Which Akka.NET Modules?
Akka.Streams

Describe the bug
When set, GraphStage.InitialAttributes is appended to the tail of Module.Attributes instead of the head

To Reproduce
Steps to reproduce the behavior:
#5387

Expected behavior
You should be able to override GraphStage.InitialAttributes using the fluent API .WithAttributes and .AddAttributes

Actual behavior
GraphStage.InitialAttributes is appended to the end of the list instead

Environment
Windows 10, all .NET platform

@Aaronontheweb
Copy link
Member

Are we supposed to only allow one Attribute of a given type per graph stage? I'm not sure what the spec here is on that. I had always assumed you could replace / override the defaults by calling additional WithAttributes invocations.

@Arkatufus
Copy link
Contributor Author

There can be multiple of a single type in the Attributes class, its just a simple list of attributes, but only the last one on the list counts as the final attribute. The idea is to keep appending attributes to the list and grab the .LastOrDefault from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants