Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
dac6895
Merge pull request #8 from BezaluLLC/main
MWG-Logan Jul 12, 2025
32c431f
Enhance Agent Service with .NET 9 optimizations and command processing
MWG-Logan Jul 12, 2025
8955bb7
Update Azure.Identity package version to 1.13.1 in project files
MWG-Logan Jul 12, 2025
a016d50
Remove obsolete project files and update SignalR and System.Text.Json…
MWG-Logan Jul 12, 2025
d79dd5a
Merge pull request #9 from BezaluLLC/dotnet9
MWG-Logan Jul 12, 2025
a37bc95
Bump Azure.Extensions.AspNetCore.Configuration.Secrets and 10 others
dependabot[bot] Jul 14, 2025
3e083aa
Merge pull request #10 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Jul 16, 2025
901152b
Update dotnet.yml
MWG-Logan Jul 18, 2025
13fd3e7
Bump Microsoft.AspNetCore.SignalR.Client and 12 others
dependabot[bot] Aug 5, 2025
8ad327a
Merge pull request #12 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Aug 7, 2025
0db18f5
Bump Azure.Identity from 1.14.2 to 1.16.0
dependabot[bot] Sep 10, 2025
448b072
Bump Microsoft.AspNetCore.SignalR.Client from 9.0.8 to 9.0.9
dependabot[bot] Sep 10, 2025
24edef9
Bump Microsoft.Extensions.Configuration.Abstractions from 9.0.8 to 9.0.9
dependabot[bot] Sep 10, 2025
8ab9254
Bump Microsoft.Extensions.Http from 9.0.8 to 9.0.9
dependabot[bot] Sep 10, 2025
f5624b9
Merge pull request #27 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Sep 19, 2025
8d1c2a9
Merge pull request #21 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Sep 19, 2025
b73039b
Merge pull request #22 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Sep 19, 2025
0db0025
Bump Microsoft.Extensions.Configuration.EnvironmentVariables and 4 ot…
dependabot[bot] Sep 19, 2025
cf5d1a2
Merge pull request #23 from BezaluLLC/dependabot/nuget/src/Signal9.Sh…
MWG-Logan Sep 19, 2025
c04ea9d
Merge pull request #26 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Sep 19, 2025
efc130f
Bump Microsoft.Azure.Functions.Worker from 2.0.0 to 2.1.0
dependabot[bot] Sep 22, 2025
a364898
Bump Newtonsoft.Json from 13.0.3 to 13.0.4
dependabot[bot] Sep 22, 2025
eef8a19
Bump System.Management from 9.0.8 to 9.0.10
dependabot[bot] Oct 15, 2025
4a721a1
Merge pull request #36 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Oct 20, 2025
abfedf1
Merge pull request #33 from BezaluLLC/dependabot/nuget/src/Signal9.Sh…
MWG-Logan Oct 20, 2025
1c2e278
Merge pull request #30 from BezaluLLC/dependabot/nuget/src/Signal9.Ag…
MWG-Logan Oct 20, 2025
7d40425
Bump Azure.Identity from 1.16.0 to 1.17.0 (#37)
dependabot[bot] Nov 20, 2025
1e65590
Bump Microsoft.AspNetCore.SignalR.Client from 9.0.9 to 9.0.10 (#38)
dependabot[bot] Nov 20, 2025
894bf8c
Bump Microsoft.Extensions.Configuration.Abstractions from 9.0.9 to 10…
dependabot[bot] Nov 21, 2025
40ac673
Bump System.Diagnostics.PerformanceCounter from 9.0.8 to 10.0.0 (#43)
dependabot[bot] Nov 21, 2025
b78938b
Bump Azure.Identity from 1.17.0 to 1.17.1 (#44)
dependabot[bot] Nov 21, 2025
bc723e1
Bump Microsoft.Azure.Functions.Worker from 2.1.0 to 2.51.0 (#46)
dependabot[bot] Dec 12, 2025
0cbb84a
Bump Microsoft.Azure.Functions.Worker.ApplicationInsights from 2.0.0 …
dependabot[bot] Dec 12, 2025
a9c967e
Bump Microsoft.AspNetCore.SignalR.Client from 9.0.10 to 10.0.1 (#51)
dependabot[bot] Dec 12, 2025
6d94aa6
Bump Microsoft.Extensions.Configuration.Abstractions from 10.0.0 to 1…
dependabot[bot] Dec 12, 2025
e0c1cb5
Bump Microsoft.Azure.Functions.Worker.Sdk from 2.0.5 to 2.0.7 (#52)
dependabot[bot] Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
19 changes: 10 additions & 9 deletions src/Signal9.Agent.Functions/Signal9.Agent.Functions.csproj
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Signal9.Agent.Functions</AssemblyName>
<RootNamespace>Signal9.Agent.Functions</RootNamespace>
<LangVersion>default</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.21.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.16.4" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.SignalRService" Version="1.7.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.SignalRService" Version="2.0.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.2.0" />
<PackageReference Include="Azure.Identity" Version="1.11.4" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.0" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.50.0" />
<PackageReference Include="Azure.Identity" Version="1.17.1" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.4.0" />
</ItemGroup>

<ItemGroup>
Expand Down
39 changes: 0 additions & 39 deletions src/Signal9.Agent.Functions/Signal9.RMM.Functions.csproj

This file was deleted.

32 changes: 23 additions & 9 deletions src/Signal9.Agent/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,53 @@
using Microsoft.Extensions.Configuration;
using Signal9.Agent.Services;
using Signal9.Shared.Configuration;
using System.Text.Json;

var builder = Host.CreateApplicationBuilder(args);

// Add configuration
// Add configuration with .NET 9 enhancements
builder.Configuration
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();
.AddEnvironmentVariables()
.AddUserSecrets<Program>(optional: true);

// Add logging
// Add enhanced logging with .NET 9 structured logging
builder.Services.AddLogging(logging =>
{
logging.ClearProviders();
logging.AddConsole();
if (OperatingSystem.IsWindows())

// Add structured logging with .NET 9 improvements
logging.AddSimpleConsole(options =>
{
logging.AddEventLog();
}
options.IncludeScopes = true;
options.SingleLine = true;
options.TimestampFormat = "[yyyy-MM-dd HH:mm:ss] ";
});
});

// Add configuration options
// Add configuration options with validation
builder.Services.Configure<AgentConfiguration>(
builder.Configuration.GetSection("AgentConfiguration"));

// Add services
// Add services with .NET 9 performance improvements
builder.Services.AddSingleton<ITelemetryCollector, TelemetryCollector>();
builder.Services.AddSingleton<ISystemInfoProvider, SystemInfoProvider>();
builder.Services.AddHostedService<AgentService>();

// Add HttpClient with .NET 9 optimizations
builder.Services.AddHttpClient("Signal9Api", client =>
{
client.BaseAddress = new Uri(builder.Configuration["Signal9Api:BaseUrl"] ?? "https://api.signal9.com");
client.Timeout = TimeSpan.FromSeconds(30);
});

var host = builder.Build();

// Create logger for startup
var logger = host.Services.GetRequiredService<ILogger<Program>>();
logger.LogInformation("Signal9 Agent starting up");
logger.LogInformation("Signal9 Agent starting up with .NET 9 optimizations");

try
{
Expand All @@ -51,4 +64,5 @@
finally
{
logger.LogInformation("Signal9 Agent shutting down");
await host.StopAsync();
}
Loading
Loading