Skip to content

Commit

Permalink
Updated version.
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-tkachev committed Dec 28, 2023
1 parent 9707797 commit af88bdf
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class AspectAttribute : Attribute
public string[]? InterceptMethods { get; set; }
public bool UseInterceptType { get; set; }
public bool PassArguments { get; set; }
public bool UseInterceptData { get; set; }
}

#if AG_PUBLIC_API
Expand Down Expand Up @@ -69,7 +70,7 @@ struct Void
#if AG_PUBLIC_API
public
#endif
abstract class InterceptInfo
partial class InterceptInfo
{
public object? Tag;
public InterceptType InterceptType;
Expand All @@ -86,10 +87,29 @@ abstract class InterceptInfo
#if AG_PUBLIC_API
public
#endif
class InterceptInfo<T> : InterceptInfo
partial class InterceptInfo<T> : InterceptInfo
{
public T ReturnValue;
}

#if AG_PUBLIC_API
public
#endif
partial struct InterceptData<T>
{
public object? Tag;
public InterceptType InterceptType;
public InterceptResult InterceptResult;
public Exception? Exception;

public InterceptInfo<T>? PreviousInfo;
public System.Reflection.MemberInfo MemberInfo;
public object?[]? MethodArguments;
public Type AspectType;
public System.Collections.Generic.Dictionary<string,object?> AspectArguments;

public T ReturnValue;
}
}

#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class AspectAttribute : Attribute
public string[]? InterceptMethods { get; set; }
public bool UseInterceptType { get; set; }
public bool PassArguments { get; set; }
public bool UseInterceptData { get; set; }
}

#if AG_PUBLIC_API
Expand Down Expand Up @@ -69,7 +70,7 @@ struct Void
#if AG_PUBLIC_API
public
#endif
abstract class InterceptInfo
partial class InterceptInfo
{
public object? Tag;
public InterceptType InterceptType;
Expand All @@ -86,10 +87,29 @@ abstract class InterceptInfo
#if AG_PUBLIC_API
public
#endif
class InterceptInfo<T> : InterceptInfo
partial class InterceptInfo<T> : InterceptInfo
{
public T ReturnValue;
}

#if AG_PUBLIC_API
public
#endif
partial struct InterceptData<T>
{
public object? Tag;
public InterceptType InterceptType;
public InterceptResult InterceptResult;
public Exception? Exception;

public InterceptInfo<T>? PreviousInfo;
public System.Reflection.MemberInfo MemberInfo;
public object?[]? MethodArguments;
public Type AspectType;
public System.Collections.Generic.Dictionary<string,object?> AspectArguments;

public T ReturnValue;
}
}

#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class AspectAttribute : Attribute
public string[]? InterceptMethods { get; set; }
public bool UseInterceptType { get; set; }
public bool PassArguments { get; set; }
public bool UseInterceptData { get; set; }
}

#if AG_PUBLIC_API
Expand Down Expand Up @@ -69,7 +70,7 @@ struct Void
#if AG_PUBLIC_API
public
#endif
abstract class InterceptInfo
partial class InterceptInfo
{
public object? Tag;
public InterceptType InterceptType;
Expand All @@ -86,10 +87,29 @@ abstract class InterceptInfo
#if AG_PUBLIC_API
public
#endif
class InterceptInfo<T> : InterceptInfo
partial class InterceptInfo<T> : InterceptInfo
{
public T ReturnValue;
}

#if AG_PUBLIC_API
public
#endif
partial struct InterceptData<T>
{
public object? Tag;
public InterceptType InterceptType;
public InterceptResult InterceptResult;
public Exception? Exception;

public InterceptInfo<T>? PreviousInfo;
public System.Reflection.MemberInfo MemberInfo;
public object?[]? MethodArguments;
public Type AspectType;
public System.Collections.Generic.Dictionary<string,object?> AspectArguments;

public T ReturnValue;
}
}

#endif
Expand Down
2 changes: 1 addition & 1 deletion Examples/AspectLibrary/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspectGenerator" Version="0.0.8.1-preview" />
<PackageReference Include="AspectGenerator" Version="0.0.9-preview" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class AspectAttribute : Attribute
public string[]? InterceptMethods { get; set; }
public bool UseInterceptType { get; set; }
public bool PassArguments { get; set; }
public bool UseInterceptData { get; set; }
}

#if AG_PUBLIC_API
Expand Down Expand Up @@ -69,7 +70,7 @@ struct Void
#if AG_PUBLIC_API
public
#endif
abstract class InterceptInfo
partial class InterceptInfo
{
public object? Tag;
public InterceptType InterceptType;
Expand All @@ -86,10 +87,29 @@ abstract class InterceptInfo
#if AG_PUBLIC_API
public
#endif
class InterceptInfo<T> : InterceptInfo
partial class InterceptInfo<T> : InterceptInfo
{
public T ReturnValue;
}

#if AG_PUBLIC_API
public
#endif
partial struct InterceptData<T>
{
public object? Tag;
public InterceptType InterceptType;
public InterceptResult InterceptResult;
public Exception? Exception;

public InterceptInfo<T>? PreviousInfo;
public System.Reflection.MemberInfo MemberInfo;
public object?[]? MethodArguments;
public Type AspectType;
public System.Collections.Generic.Dictionary<string,object?> AspectArguments;

public T ReturnValue;
}
}

#endif
Expand Down
2 changes: 1 addition & 1 deletion Examples/MultiProject/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<ItemGroup>
<Compile Include="..\Aspects\*.cs" />

<PackageReference Include="AspectGenerator" Version="0.0.8.1-preview" />
<PackageReference Include="AspectGenerator" Version="0.0.9-preview" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sealed class AspectAttribute : Attribute
public string[]? InterceptMethods { get; set; }
public bool UseInterceptType { get; set; }
public bool PassArguments { get; set; }
public bool UseInterceptData { get; set; }
}

#if AG_PUBLIC_API
Expand Down Expand Up @@ -69,7 +70,7 @@ struct Void
#if AG_PUBLIC_API
public
#endif
abstract class InterceptInfo
partial class InterceptInfo
{
public object? Tag;
public InterceptType InterceptType;
Expand All @@ -86,10 +87,29 @@ abstract class InterceptInfo
#if AG_PUBLIC_API
public
#endif
class InterceptInfo<T> : InterceptInfo
partial class InterceptInfo<T> : InterceptInfo
{
public T ReturnValue;
}

#if AG_PUBLIC_API
public
#endif
partial struct InterceptData<T>
{
public object? Tag;
public InterceptType InterceptType;
public InterceptResult InterceptResult;
public Exception? Exception;

public InterceptInfo<T>? PreviousInfo;
public System.Reflection.MemberInfo MemberInfo;
public object?[]? MethodArguments;
public Type AspectType;
public System.Collections.Generic.Dictionary<string,object?> AspectArguments;

public T ReturnValue;
}
}

#endif
Expand Down
2 changes: 1 addition & 1 deletion Source/AspectGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>

<Version>0.0.8.1-preview</Version>
<Version>0.0.9-preview</Version>

<IsPackage>true</IsPackage>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down

0 comments on commit af88bdf

Please sign in to comment.