Skip to content
Discussion options

You must be logged in to vote

Hey @apoonja-gwt , I thought it would be easy but then realized two methods were needlessly sealed for overriding. I still had to release as new version, this change basically got into the release. Do this:

  • remove your aspect, leave only the attribute (Universal handles aspects for you)

make your attribute like this

using System.Diagnostics;
using Aspects.Universal.Attributes;
using Aspects.Universal.Events;

namespace SampleAspectApp.Aspects;

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class SimpleLogAttribute : MethodAspectAttribute
{
    public bool MeasureTime { get; } = false;

    public string Prefix { get; } = string.Empty;

    public SimpleLogAttri…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@apoonja-gwt
Comment options

Answer selected by apoonja-gwt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants