Compile Warning: FacebookMessagingService.OmnichannelMessaging.cs

Hi!

When i publish my changes the system (7.16.3.1473) pop up this message/warning:

FacebookMessagingService.OmnichannelMessaging.cs | 49 | 
This async method lacks 'await' operators and will run synchronously. Consider
using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)'
to do CPU-bound work on a background thread.

Can you help me to fix this, please?

Thx!

 

Like 0

Like

4 comments

Hello Wolf, 

 

This warning message appears because there is no await operator in the RegisterFacebookMessenger async function of the FacebookMessagingService schema (the await operator is actually presented in this function but is commented and as a result, the compilator returns a warning). Please ignore it since it doesn't impact the system functionality at all. We have already created the request for our R&D team to review the logic of this schema and apply changes to it to remove the warning message in further releases. 

 

Our apologies for this inconvenience!

 

Best regards, 

Olga. 

Hello Wolf,

 

There is a system setting you can change to ignore compiler warnings (you’ll still see errors). See https://customerfx.com/article/turning-off-compiler-warnings-in-creatio…

 

Ryan

Olga Avis,

thank you for your reply. 

 

No problem. :)

 

Best regards,

Wolf

Ryan Farley,

Hi Ryan,

good to know, thanks.

 

Wolf

Show all comments