How to reinitialize UserState with new blobstorage outside Startup.cs class?

70 Views Asked by At

I have a front end webchat channel, I am sending an event activity which has a value(storage container name) to be sent on OnEventActivityAsync handler. How can I reconfigure the UserState initialized in startup.cs with a new storage name that I received from the event?

I am familiar with a concept of initializing UserState and AzureBlobStorage in Startup.cs but here I need to change the container name when OnEventActivityAsync is hit.

1

There are 1 best solutions below

1
Sairam Tadepalli On BEST ANSWER