Starting migration of QueueNodeHearbeat (#1742)

* Add support for etag and timestamp
Introducing EntityBase
Starting migration of QueueNodeHearbeat

* rename namespaces

* upgrade Microsoft.Azure.Functions.Worker to 1.6.0
Added support when name contains underscore tot the case converter

* Support for not renaming enum fields

* bug fixes

* Arm client created in the contructor
added null check
This commit is contained in:
Cheick Keita
2022-04-05 13:08:46 -07:00
committed by GitHub
parent 0c3d9fcad2
commit 78f8e3215f
11 changed files with 453 additions and 328 deletions

View File

@ -6,6 +6,7 @@ using Microsoft.Extensions.Hosting;
using Microsoft.Azure.Functions.Worker.Configuration;
using Azure.ResourceManager.Storage.Models;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OneFuzz.Service.OneFuzzLib.Orm;
namespace Microsoft.OneFuzz.Service;
@ -33,7 +34,8 @@ public class Program
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureServices((context, services) =>
services.AddSingleton<LogTracerFactory>(_ => new LogTracerFactory(GetLoggers()))
services.AddSingleton(_ => new LogTracerFactory(GetLoggers()))
.AddSingleton<IStorageProvider>(_ => new StorageProvider(EnvironmentVariables.OneFuzz.FuncStorage ?? throw new InvalidOperationException("Missing account id") ))
)
.Build();