How do I lock my epicor function? I need to ensure the security of the data obtained by my code。
Just like the purpose of this C# code
lock (lockObject)
{
//My Function Logic
}
How do I lock my epicor function? I need to ensure the security of the data obtained by my code。
Just like the purpose of this C# code
lock (lockObject)
{
//My Function Logic
}
I have no idea what you are asking about, so I asked GPT to translate for me. Apparently you want to lock a function so that multiple threads don’t access the same resource, or something like that. I don’t think there is anything like that built in, besides the custom code block and the sync/async flag there. GPT seems to think that functions in epicor run in a stateless mode, so each function call is isolated. I don’t know that to be true, but I would believe it.
Give us more of your business use case here and I am sure we can help find a solution!
EDIT: I just went to grab a screenshot showing sync/async option on custom code block, and it only allows sync. So… ![]()