Created proxy with task based operations in 4.5 and will not work in .net 4.0

Hi All,

I have created proxy with task based operations in 4.5, it came 2 methods for each operation contract like below

public bool CreatedAccount()
return base.Channel.CreatedAccount();

public System.Threading.Tasks.Task<bool> CreatedAccountAsync()
return base.Channel.CreatedAccountAsync();

And it's working in local, but it's not working in server. In server we have 4. 0.

Is there any possible way to work the same code in 4.0 ?

I googled and found Microsoft Async nugget needs to be installed in my project.

Please let me know whether the above approach will workout for me or not ?

Thanks in advance.