Skip to content
New issue

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

Wiki links are currently broken #58

Open
marcells opened this issue May 9, 2018 · 6 comments
Open

Wiki links are currently broken #58

marcells opened this issue May 9, 2018 · 6 comments
Assignees
Labels

Comments

@marcells
Copy link

marcells commented May 9, 2018

Switch to the Wiki on GitHub and try several links in the TOC. Most of them are broken,

@reflection-emit
Copy link
Collaborator

reflection-emit commented May 9, 2018 via email

@marcells
Copy link
Author

marcells commented May 9, 2018

Thank you.

@krishna0209
Copy link

This might be a related issue, but I also noticed that the "Assembly-wide attribute decoration" & "Custom Interceptors" link on the wiki page (https://github.com/Capgemini/Cauldron/wiki) is broken, it points to the same page instead of an example.

In the meantime, is there documentation on how to implement assembly-wide attributes?

@reflection-emit
Copy link
Collaborator

Nope... Actually I started to write the documentation, but haven't finished it yet.

In short.. You can create a json file in your projects root folder and name it *cauldron.fody.json
Here is an example of how it could look like.

[
  {
    "is-active": true,
    "debug-only": false,
    "decorator": [
      {
        "type-name": "Program.WebService.LoggerAttribute", // The full name of the attribute to decorate
        "decorate-class": false,
        "decorate-methods": true,
        "decorate-properties": false,
        "target-class-filter": {
          "public": true, // Include all public class?
          "internal": true, // Include all internal class?
          "private": false, // Inlude all private class?
          "static": false, // Include all static class?
          "instanced": true, // Include all instanced class?
          "name": "\\w*Controller" // Regex - include all classes with that matches
        }
      },
      {
        "type-name": "Company.Common.Logging.PerformanceLoggerAttribute",
        "decorate-class": false,
        "decorate-methods": true,
        "decorate-properties": false,
        "target-class-filter": {
          "public": true,
          "internal": true,
          "private": false,
          "static": false,
          "instanced": true,
          "name": "\\w*Controller"
        }
      }
    ]
  }
]

There are more options though. I will be explaining them in the documentation. I hope I can finish it by the end of the month.

@krishna0209
Copy link

Thank you, this is really helpful!

@reflection-emit
Copy link
Collaborator

BTW... Here is a json with all the options which I use for the unit test as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants