Skip to content

Commit 1ca805a

Browse files
committed
Refactor MetadataLoaderExtension to use OnAfterMetadataLoad and add project reference for AwsSqs integration
1 parent 31b8e62 commit 1ca805a

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed
Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Intent.Engine;
22
using Intent.Modules.Common;
33
using Intent.Modules.Common.Plugins;
4+
using Intent.Modules.Integration.IaC.Shared.AwsSqs;
45
using Intent.Plugins.FactoryExtensions;
56
using Intent.RoslynWeaver.Attributes;
67

@@ -17,30 +18,9 @@ public class MetadataLoaderExtension : FactoryExtensionBase
1718
[IntentManaged(Mode.Ignore)]
1819
public override int Order => 0;
1920

20-
/// <summary>
21-
/// This is an example override which would extend the
22-
/// <see cref="ExecutionLifeCycleSteps.AfterTemplateRegistrations"/> phase of the Software Factory execution.
23-
/// See <see cref="FactoryExtensionBase"/> for all available overrides.
24-
/// </summary>
25-
/// <remarks>
26-
/// It is safe to update or delete this method.
27-
/// </remarks>
28-
protected override void OnAfterTemplateRegistrations(IApplication application)
21+
protected override void OnAfterMetadataLoad(IApplication application)
2922
{
30-
// Your custom logic here.
31-
}
32-
33-
/// <summary>
34-
/// This is an example override which would extend the
35-
/// <see cref="ExecutionLifeCycleSteps.BeforeTemplateExecution"/> phase of the Software Factory execution.
36-
/// See <see cref="FactoryExtensionBase"/> for all available overrides.
37-
/// </summary>
38-
/// <remarks>
39-
/// It is safe to update or delete this method.
40-
/// </remarks>
41-
protected override void OnBeforeTemplateExecution(IApplication application)
42-
{
43-
// Your custom logic here.
23+
IntegrationManager.Initialize(application);
4424
}
4525
}
4626
}

Modules/Intent.Modules.Aws.Lambda.Functions.Sqs/Intent.Modules.Aws.Lambda.Functions.Sqs.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@
2828
<ProjectReference Include="..\Intent.Modules.Constants\Intent.Modules.Constants.csproj" PrivateAssets="All" />
2929
</ItemGroup>
3030

31+
<Import Project="..\Intent.Modules.Integration.IaC.Shared.AwsSqs\Intent.Modules.Integration.IaC.Shared.AwsSqs.projitems" Label="Shared" />
32+
3133
</Project>

0 commit comments

Comments
 (0)