Implementing IComposerItemStore Obsolete Methods
Posted: Fri Apr 10, 2020 9:35 am
Hello
I'd like to implement IComposerItemStore using redis. I can see in the docs that the methods Clear() and GetAll() are deprecated. Does it mean I don't need to implement them in custom ComposerItemStore? (just throw NotImplementedException)
Moreover, I'd like to know whether I need to handle timeout. MessageComposer docs say the messages parts expire after 60 seconds.
And last thing - an alternative scenario, where I handle storing message parts myself (outside MessageComposer). In this case is there any disadvantage of creating MessageComposer instance per DeliverSm? And the method IsLastSegment() - will it return true for the last segment if it's the only segment added to MessageComposer instance or do I need to add all segments and only then IsLastSegment returns true?
Thanks in advance
I'd like to implement IComposerItemStore using redis. I can see in the docs that the methods Clear() and GetAll() are deprecated. Does it mean I don't need to implement them in custom ComposerItemStore? (just throw NotImplementedException)
Moreover, I'd like to know whether I need to handle timeout. MessageComposer docs say the messages parts expire after 60 seconds.
And last thing - an alternative scenario, where I handle storing message parts myself (outside MessageComposer). In this case is there any disadvantage of creating MessageComposer instance per DeliverSm? And the method IsLastSegment() - will it return true for the last segment if it's the only segment added to MessageComposer instance or do I need to add all segments and only then IsLastSegment returns true?
Thanks in advance