mirror of https://github.com/abpframework/abp.git
5 changed files with 80 additions and 2 deletions
@ -0,0 +1,19 @@ |
|||
using System; |
|||
|
|||
namespace Volo.DependencyInjection |
|||
{ |
|||
public class ExposeServicesAttribute : Attribute, IExposedServiceTypesProvider |
|||
{ |
|||
public Type[] ExposedServiceTypes { get; } |
|||
|
|||
public ExposeServicesAttribute(params Type[] exposedServiceTypes) |
|||
{ |
|||
ExposedServiceTypes = exposedServiceTypes; |
|||
} |
|||
|
|||
public Type[] GetExposedServiceTypes() |
|||
{ |
|||
return ExposedServiceTypes; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
using System; |
|||
|
|||
namespace Volo.DependencyInjection |
|||
{ |
|||
public interface IExposedServiceTypesProvider |
|||
{ |
|||
Type[] GetExposedServiceTypes(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue