-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mathias Stenbom
committed
Oct 2, 2024
1 parent
b834096
commit a4bcedf
Showing
8 changed files
with
79 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
|
||
namespace Saspect.Test.Samples; | ||
|
||
public class Aspect1 : IAspect | ||
{ | ||
public void OnBeforeInvocation(InvocationInfo invocation) | ||
{ | ||
} | ||
|
||
public void OnAfterInvocation(Exception exception, InvocationInfo invocation) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Saspect.Test.Samples; | ||
|
||
public class Aspect1Attribute : AspectAttribute | ||
{ | ||
public Aspect1Attribute() : base(typeof(Aspect1)) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Saspect.Test.Samples; | ||
|
||
public class CtorSample | ||
{ | ||
public CtorSample(DependencySample injected) | ||
{ | ||
} | ||
|
||
[Aspect1] | ||
public virtual void AspectedMethod() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Saspect.Test.Samples; | ||
|
||
public class DependencySample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Saspect.Test.Samples; | ||
|
||
public class NestedClassSample | ||
{ | ||
public class NestedClass | ||
{ | ||
[Aspect1] | ||
public virtual void AspectedMethod() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Saspect.Test.Samples; | ||
|
||
public class PrimaryCtorSample(DependencySample injected) | ||
Check warning on line 3 in Saspect.Test/Samples/PrimaryCtorSample.cs GitHub Actions / build
|
||
{ | ||
[Aspect1] | ||
public virtual void AspectedMethod() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters