Question
Accessing database when HttpContext.Current is null
16:05 Sep 20, 2018
I normally get UserConnection from HttpContext and then use it to access the database. Now, when dealing with a business process that starts after a signal, HttpContext.Current is empty. Is there some default UserConnection that I can access?
Like
2 comments
09:49 Sep 24, 2018
Hello Carlos,
In order to obtain the UserConnection in the script-task element of the business-process, please use the following syntax:
var userConnection = Get<UserConnection>("UserConnection");
Show all comments