Whit
Whit
Explore posts from servers
MCMetalama Community
Created by Whit on 10/6/2023 in #technical-questions
How to inject factory-based dependencies from method aspect into type?
Perfect - thank you
3 replies
MCMetalama Community
Created by Drago-QCC on 9/30/2023 in #technical-questions
Giving Aspects Metadata ?
Because I do an analysis of how the properties are used and then inject all manner of things based on that analysis, I just store a Dictionary<string, INamedType> that I pass around between methods in the aspect.
6 replies
MCMetalama Community
Created by Drago-QCC on 9/30/2023 in #technical-questions
Giving Aspects Metadata ?
I do this in an aspect I've written. Remember that the aspects themselves don't really exist at runtime - they're only a compile-time thing, so any metadata you're passing around about anything is only valid (unless you persist it somewhere) while it's building your project.
6 replies
MCMetalama Community
Created by Lance on 10/3/2023 in #technical-questions
IntroduceDependency with record types
Though I can see it making more sense if it still bugs in the next version of C# with implicit class constructors.
5 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Yes, that's right. Once he was able to repro it himself, I didn't see a need to file a separate issue in Github as well
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Excellent, thank you
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
@petronderka I don't see anything about this in the release notes (https://github.com/orgs/postsharp/discussions/218) for 2023.3.5-rc - did it make it in?
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Very exciting - thank you
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Well, I'll just disable the test project until you're able to produce another preview build with a fix then
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
I wonder if the issue isn't with the fact that this aspect is making use of the dependency injection feature - as it's a standalone unit test with no entry point, there's no opportunity to register DI. At compile time, it wouldn't care - it'd set it up as a field and in the constructor as it would, but at runtime there would be an attempted injection that wouldn't actually happen. I don't know what magic the Metalama Aspect Testing package is trying to do under the hood, but perhaps it's something related to this?
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
I appreciate it!
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
No description
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Curious, but I'll give that a shot
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Awesome, thank you
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Found you - added on github
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
@petronderka
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
What's your email? I'll invite you to the project.
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
It's part of a much larger solution, so let me extract it out
41 replies
MCMetalama Community
Created by Whit on 9/3/2023 in #technical-questions
Unable to get aspect testing to work
Yeah, give me a few
41 replies