streamiz
streamiz copied to clipboard
Some methods marked as internal prevent custom implementations
Hi there, I was messing around and tried implementing a custom state store that uses SQLite (works well, actually!), and I came across a couple of issues (that I've found workarounds for, for now):
- The state store's
Init()method needs to callProcessorContext.Register(), except that this method is marked asinternal, so it is inaccessible. My workaround involves using reflection to invoke the method with a delegate. - In some cases, it's required to construct an instance of
Bytes, however, the public constructor is marked asObsolete, and the only other suitable method,Wrap, hasinternalvisibility. My current workaround involves subclassingBytesand overriding theGetproperty.
My ask would be to make the ProcessorContext.Register() method public + virtual and also public for Bytes.Wrap().
Thanks!
@xdave
Makes sense ! Thanks for your feedback