What are the challenges you face when working across database platforms? Take the survey
Options

Errors when using async keyword

karol.wkarol.w Posts: 2
edited November 3, 2014 11:02AM in SmartAssembly
Hi,

I just started evaluating SmartAssembly and I'm afraid it fails completely for our project. It seems that certain async constructs cause it to fail with error 'SmartAssembly has encountered and invalid symbol in [...]'. This happens at least for explicit async interface implementations and async delegates / lambda functions.

Here's one snippet of code that causes trouble (although, as mentioned above, that's not the only failing scenario). Tested with SmartAssembly 6.9.0.114 and .NET 4.5.1.

public interface IAsyncInterface
    {
        Task Do();
    }

    public class ExplicitAsyncImplementation : IAsyncInterface
    {
        async Task IAsyncInterface.Do()
        {
            
        }
    }

Comments

  • Options
    Hi,

    Thanks for letting us know about this. Another customer has found the same problem. While we look into it, the other customer has suggested a workaround: 'Create a private method and move all code from the explicit interface implementation to this method.' Hopefully that will work for you too.

    Dom.

    (Internal reference for this bug: SA-1782)
    Dominic Smith,
    Project Manager,
    Redgate.
Sign In or Register to comment.