| | | 1 | | namespace NexusLabs.Needlr.Generators.Models; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Information about an intercepted service (from [Intercept<T>]). |
| | | 5 | | /// </summary> |
| | | 6 | | internal readonly struct DiscoveredInterceptedService |
| | | 7 | | { |
| | | 8 | | public DiscoveredInterceptedService( |
| | | 9 | | string typeName, |
| | | 10 | | string[] interfaceNames, |
| | | 11 | | string assemblyName, |
| | | 12 | | GeneratorLifetime lifetime, |
| | | 13 | | InterceptorDiscoveryHelper.InterceptedMethodInfo[] methods, |
| | | 14 | | string[] allInterceptorTypeNames, |
| | | 15 | | string? sourceFilePath = null) |
| | | 16 | | { |
| | 14 | 17 | | TypeName = typeName; |
| | 14 | 18 | | InterfaceNames = interfaceNames; |
| | 14 | 19 | | AssemblyName = assemblyName; |
| | 14 | 20 | | Lifetime = lifetime; |
| | 14 | 21 | | Methods = methods; |
| | 14 | 22 | | AllInterceptorTypeNames = allInterceptorTypeNames; |
| | 14 | 23 | | SourceFilePath = sourceFilePath; |
| | 14 | 24 | | } |
| | | 25 | | |
| | 2585 | 26 | | public string TypeName { get; } |
| | 59 | 27 | | public string[] InterfaceNames { get; } |
| | 14 | 28 | | public string AssemblyName { get; } |
| | 28 | 29 | | public GeneratorLifetime Lifetime { get; } |
| | 34 | 30 | | public InterceptorDiscoveryHelper.InterceptedMethodInfo[] Methods { get; } |
| | 33 | 31 | | public string[] AllInterceptorTypeNames { get; } |
| | 20 | 32 | | public string? SourceFilePath { get; } |
| | | 33 | | } |