How to call a Async method in AsyncCode Activity – Getting error: class return MainAsync.BeginInvoke(callback, state);

I am trying to call an Async method in Async Code Activity but getting error while calling BeginInvoke: Getting error while : return MainAsync.BeginInvoke(callback, state); class GetExchangeScope : AsyncCodeActivity<int> { protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { Func<string, string, Task<ExchangeService>> GetRandomDelegate = new Func<string, string, Task<ExchangeService>>(MainAsync); context.UserState = GetRandomDelegate; return MainAsync.BeginInvoke(callback, state);…

Details

I want to run Sql Query in script how can i do this

Thats What I tried But it give console error. i didnt understand how can run this i Have pass jquery variable to sql query but it isnt working <script type=”text/javascript”> var scriptTag = document.scripts[document.scripts.length – 1]; var parentTag = scriptTag.parentNode; var main = parentTag.parentNode; var id = jQuery(main).attr(‘id’) var i; for (i = id; i<=id;…

Details