We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a static class is decorated with [Coalesce, Service] Coalesce generates invalid C# without providing error output in the Coalesce task.
Static class
namespace IntelliTect.MyApplication.Data { [Coalesce] [Service] public static class UserService { public static UserInfo UserInfo(ClaimsPrincipal user) { return new UserInfo { IsLoggedIn = user.IsLoggedIn(), UserName = user.GetUserName(), }; } } public class UserInfo { public bool IsLoggedIn { get; set; } public string UserName { get; set; } } }
Generated Controller
namespace IntelliTect.MyApplication.Web.Api { [Route("api/UserService")] [ServiceFilter(typeof(IApiActionFilter))] public partial class UserServiceController : Controller { protected IntelliTect.MyApplication.Data.UserService Service { get; } public UserServiceController(IntelliTect.MyApplication.Data.UserService service) { Service = service; } } }
"Property cannot be of static class type 'IntelliTect.MyApplication.Data.UserService'"
The text was updated successfully, but these errors were encountered:
8d50c58
No branches or pull requests
When a static class is decorated with [Coalesce, Service] Coalesce generates invalid C# without providing error output in the Coalesce task.
Static class
Generated Controller
"Property cannot be of static class type 'IntelliTect.MyApplication.Data.UserService'"
The text was updated successfully, but these errors were encountered: