mirror of https://github.com/abpframework/abp.git
5 changed files with 50 additions and 13 deletions
@ -0,0 +1,16 @@ |
|||
using Autofac; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.Autofac; |
|||
|
|||
namespace Volo.Abp |
|||
{ |
|||
public static class AbpAutofacAbpApplicationCreationOptionsExtensions |
|||
{ |
|||
public static void UseAutofac(this AbpApplicationCreationOptions options) |
|||
{ |
|||
var builder = new ContainerBuilder(); |
|||
options.Services.AddObjectAccessor(builder); |
|||
options.Services.AddSingleton((IServiceProviderFactory<ContainerBuilder>) new AbpAutofacServiceProviderFactory(builder)); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
namespace Volo.Abp.DynamicProxy |
|||
{ |
|||
public interface IAbpInterceptor |
|||
{ |
|||
void Intercept(IAbpMethodInvocation invocation); |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
using System; |
|||
using System.Reflection; |
|||
|
|||
namespace Volo.Abp.DynamicProxy |
|||
{ |
|||
public interface IAbpMethodInvocation |
|||
{ |
|||
object[] Arguments { get; } |
|||
|
|||
Type[] GenericArguments { get; } |
|||
|
|||
object InvocationTarget { get; } |
|||
|
|||
MethodInfo MethodInvocationTarget { get; } |
|||
|
|||
object ReturnValue { get; set; } |
|||
|
|||
void Proceed(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue