question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export attributes should only be allowed on class

See original GitHub issue

I wanted to export some instances with attributes, so I was pleasantly surprised that ExportAttribute can be put on a property.

Some research later, I find nothing in Grace code that looks at export attributes on anything else than a class, so their attribute target should probably be changed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ipjohnsoncommented, May 27, 2020

Yeah it is interesting how fluent registrations became so popular because registering hundreds (we have 500+) by hand sounds horrible. I usually just export a whole assembly by interface and apply lifestyles based on naming convention and patch any missing piece with fluent registration (there isn’t usually much).

I’ll make the change to the attribute usage to clear up any confusion. Sorry for the inconvenience.

0reactions
jods4commented, May 18, 2021

@ipjohnson sorry to necro that old issue, but I do have a related question:

I have cases where some of my assemblies has to export from a factory method. Is there a way to achieve this with attributes and automatic discovery?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 2: export class attributes from a local variable to the ...
I'm writing all the classes so I can guarantee no name collisions. Making MyClass a subclass of Stuffclass won't work, because I actually...
Read more >
Attributed programming model overview (MEF)
In the attributed programming model, imports and exports are declared by decorating classes or members with the Import and Export attributes.
Read more >
Attributes on an Export scenario
I am only able to export attributes resulting in one per line attr. ... No, for some reason I can export most of...
Read more >
Exporting attributes of CI class into Spreadsheet
Hi, My colleague doesn't have admin rights to see attributes of various CI classes. So, he is looking for me to walk him...
Read more >
Export features to individual feature classes based on ...
This article provides two alternative workflows to export features to individual feature classes based on unique attributes using the Split By  ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found