mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-23 06:38:50 +00:00
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:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user