Skip to content

Commit dfe72bf

Browse files
committed
Update public API after recent proceed info and delegate proxy changes
1 parent 2c27cc9 commit dfe72bf

5 files changed

Lines changed: 50 additions & 0 deletions

File tree

ref/Castle.Core-net35.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,7 @@ protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] in
24512451
public object Proxy { get; }
24522452
public object ReturnValue { get; set; }
24532453
public abstract System.Type TargetType { get; }
2454+
public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { }
24542455
public object GetArgumentValue(int index) { }
24552456
public System.Reflection.MethodInfo GetConcreteMethod() { }
24562457
public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { }
@@ -2517,12 +2518,17 @@ public interface IInvocation
25172518
object Proxy { get; }
25182519
object ReturnValue { get; set; }
25192520
System.Type TargetType { get; }
2521+
Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo();
25202522
object GetArgumentValue(int index);
25212523
System.Reflection.MethodInfo GetConcreteMethod();
25222524
System.Reflection.MethodInfo GetConcreteMethodInvocationTarget();
25232525
void Proceed();
25242526
void SetArgumentValue(int index, object value);
25252527
}
2528+
public interface IInvocationProceedInfo
2529+
{
2530+
void Invoke();
2531+
}
25262532
public class InvalidMixinConfigurationException : System.Exception
25272533
{
25282534
public InvalidMixinConfigurationException(string message) { }
@@ -2675,6 +2681,8 @@ public ProxyGenerationOptions() { }
26752681
public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; }
26762682
public Castle.DynamicProxy.MixinData MixinData { get; }
26772683
public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; }
2684+
public void AddDelegateMixin(System.Delegate @delegate) { }
2685+
public void AddDelegateTypeMixin(System.Type delegateType) { }
26782686
public void AddMixinInstance(object instance) { }
26792687
public override bool Equals(object obj) { }
26802688
public override int GetHashCode() { }
@@ -2753,6 +2761,8 @@ protected System.Collections.Generic.List<object> GetConstructorArguments(object
27532761
}
27542762
public class static ProxyUtil
27552763
{
2764+
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy) { }
2765+
public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { }
27562766
public static object GetUnproxiedInstance(object instance) { }
27572767
public static System.Type GetUnproxiedType(object instance) { }
27582768
public static bool IsAccessible(System.Reflection.MethodBase method) { }

ref/Castle.Core-net40.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,6 +2498,7 @@ protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] in
24982498
public object Proxy { get; }
24992499
public object ReturnValue { get; set; }
25002500
public abstract System.Type TargetType { get; }
2501+
public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { }
25012502
public object GetArgumentValue(int index) { }
25022503
public System.Reflection.MethodInfo GetConcreteMethod() { }
25032504
public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { }
@@ -2564,12 +2565,17 @@ public interface IInvocation
25642565
object Proxy { get; }
25652566
object ReturnValue { get; set; }
25662567
System.Type TargetType { get; }
2568+
Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo();
25672569
object GetArgumentValue(int index);
25682570
System.Reflection.MethodInfo GetConcreteMethod();
25692571
System.Reflection.MethodInfo GetConcreteMethodInvocationTarget();
25702572
void Proceed();
25712573
void SetArgumentValue(int index, object value);
25722574
}
2575+
public interface IInvocationProceedInfo
2576+
{
2577+
void Invoke();
2578+
}
25732579
public class InvalidMixinConfigurationException : System.Exception
25742580
{
25752581
public InvalidMixinConfigurationException(string message) { }
@@ -2722,6 +2728,8 @@ public ProxyGenerationOptions() { }
27222728
public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; }
27232729
public Castle.DynamicProxy.MixinData MixinData { get; }
27242730
public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; }
2731+
public void AddDelegateMixin(System.Delegate @delegate) { }
2732+
public void AddDelegateTypeMixin(System.Type delegateType) { }
27252733
public void AddMixinInstance(object instance) { }
27262734
public override bool Equals(object obj) { }
27272735
public override int GetHashCode() { }
@@ -2802,6 +2810,8 @@ protected System.Collections.Generic.List<object> GetConstructorArguments(object
28022810
}
28032811
public class static ProxyUtil
28042812
{
2813+
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy) { }
2814+
public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { }
28052815
public static object GetUnproxiedInstance(object instance) { }
28062816
public static System.Type GetUnproxiedType(object instance) { }
28072817
public static bool IsAccessible(System.Reflection.MethodBase method) { }

ref/Castle.Core-net45.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,6 +2498,7 @@ protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] in
24982498
public object Proxy { get; }
24992499
public object ReturnValue { get; set; }
25002500
public abstract System.Type TargetType { get; }
2501+
public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { }
25012502
public object GetArgumentValue(int index) { }
25022503
public System.Reflection.MethodInfo GetConcreteMethod() { }
25032504
public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { }
@@ -2564,12 +2565,17 @@ public interface IInvocation
25642565
object Proxy { get; }
25652566
object ReturnValue { get; set; }
25662567
System.Type TargetType { get; }
2568+
Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo();
25672569
object GetArgumentValue(int index);
25682570
System.Reflection.MethodInfo GetConcreteMethod();
25692571
System.Reflection.MethodInfo GetConcreteMethodInvocationTarget();
25702572
void Proceed();
25712573
void SetArgumentValue(int index, object value);
25722574
}
2575+
public interface IInvocationProceedInfo
2576+
{
2577+
void Invoke();
2578+
}
25732579
public class InvalidMixinConfigurationException : System.Exception
25742580
{
25752581
public InvalidMixinConfigurationException(string message) { }
@@ -2722,6 +2728,8 @@ public ProxyGenerationOptions() { }
27222728
public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; }
27232729
public Castle.DynamicProxy.MixinData MixinData { get; }
27242730
public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; }
2731+
public void AddDelegateMixin(System.Delegate @delegate) { }
2732+
public void AddDelegateTypeMixin(System.Type delegateType) { }
27252733
public void AddMixinInstance(object instance) { }
27262734
public override bool Equals(object obj) { }
27272735
public override int GetHashCode() { }
@@ -2802,6 +2810,8 @@ protected System.Collections.Generic.List<object> GetConstructorArguments(object
28022810
}
28032811
public class static ProxyUtil
28042812
{
2813+
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy) { }
2814+
public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { }
28052815
public static object GetUnproxiedInstance(object instance) { }
28062816
public static System.Type GetUnproxiedType(object instance) { }
28072817
public static bool IsAccessible(System.Reflection.MethodBase method) { }

ref/Castle.Core-netstandard1.3.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] in
13501350
public object Proxy { get; }
13511351
public object ReturnValue { get; set; }
13521352
public abstract System.Type TargetType { get; }
1353+
public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { }
13531354
public object GetArgumentValue(int index) { }
13541355
public System.Reflection.MethodInfo GetConcreteMethod() { }
13551356
public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { }
@@ -1416,12 +1417,17 @@ public interface IInvocation
14161417
object Proxy { get; }
14171418
object ReturnValue { get; set; }
14181419
System.Type TargetType { get; }
1420+
Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo();
14191421
object GetArgumentValue(int index);
14201422
System.Reflection.MethodInfo GetConcreteMethod();
14211423
System.Reflection.MethodInfo GetConcreteMethodInvocationTarget();
14221424
void Proceed();
14231425
void SetArgumentValue(int index, object value);
14241426
}
1427+
public interface IInvocationProceedInfo
1428+
{
1429+
void Invoke();
1430+
}
14251431
public class InvalidMixinConfigurationException : System.Exception
14261432
{
14271433
public InvalidMixinConfigurationException(string message) { }
@@ -1563,6 +1569,8 @@ public ProxyGenerationOptions() { }
15631569
public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; }
15641570
public Castle.DynamicProxy.MixinData MixinData { get; }
15651571
public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; }
1572+
public void AddDelegateMixin(System.Delegate @delegate) { }
1573+
public void AddDelegateTypeMixin(System.Type delegateType) { }
15661574
public void AddMixinInstance(object instance) { }
15671575
public override bool Equals(object obj) { }
15681576
public override int GetHashCode() { }
@@ -1640,6 +1648,8 @@ protected System.Collections.Generic.List<object> GetConstructorArguments(object
16401648
}
16411649
public class static ProxyUtil
16421650
{
1651+
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy) { }
1652+
public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { }
16431653
public static object GetUnproxiedInstance(object instance) { }
16441654
public static System.Type GetUnproxiedType(object instance) { }
16451655
public static bool IsAccessible(System.Reflection.MethodBase method) { }

ref/Castle.Core-netstandard1.5.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ protected AbstractInvocation(object proxy, Castle.DynamicProxy.IInterceptor[] in
13501350
public object Proxy { get; }
13511351
public object ReturnValue { get; set; }
13521352
public abstract System.Type TargetType { get; }
1353+
public Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo() { }
13531354
public object GetArgumentValue(int index) { }
13541355
public System.Reflection.MethodInfo GetConcreteMethod() { }
13551356
public System.Reflection.MethodInfo GetConcreteMethodInvocationTarget() { }
@@ -1416,12 +1417,17 @@ public interface IInvocation
14161417
object Proxy { get; }
14171418
object ReturnValue { get; set; }
14181419
System.Type TargetType { get; }
1420+
Castle.DynamicProxy.IInvocationProceedInfo CaptureProceedInfo();
14191421
object GetArgumentValue(int index);
14201422
System.Reflection.MethodInfo GetConcreteMethod();
14211423
System.Reflection.MethodInfo GetConcreteMethodInvocationTarget();
14221424
void Proceed();
14231425
void SetArgumentValue(int index, object value);
14241426
}
1427+
public interface IInvocationProceedInfo
1428+
{
1429+
void Invoke();
1430+
}
14251431
public class InvalidMixinConfigurationException : System.Exception
14261432
{
14271433
public InvalidMixinConfigurationException(string message) { }
@@ -1563,6 +1569,8 @@ public ProxyGenerationOptions() { }
15631569
public Castle.DynamicProxy.IProxyGenerationHook Hook { get; set; }
15641570
public Castle.DynamicProxy.MixinData MixinData { get; }
15651571
public Castle.DynamicProxy.IInterceptorSelector Selector { get; set; }
1572+
public void AddDelegateMixin(System.Delegate @delegate) { }
1573+
public void AddDelegateTypeMixin(System.Type delegateType) { }
15661574
public void AddMixinInstance(object instance) { }
15671575
public override bool Equals(object obj) { }
15681576
public override int GetHashCode() { }
@@ -1640,6 +1648,8 @@ protected System.Collections.Generic.List<object> GetConstructorArguments(object
16401648
}
16411649
public class static ProxyUtil
16421650
{
1651+
public static TDelegate CreateDelegateToMixin<TDelegate>(object proxy) { }
1652+
public static System.Delegate CreateDelegateToMixin(object proxy, System.Type delegateType) { }
16431653
public static object GetUnproxiedInstance(object instance) { }
16441654
public static System.Type GetUnproxiedType(object instance) { }
16451655
public static bool IsAccessible(System.Reflection.MethodBase method) { }

0 commit comments

Comments
 (0)