mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-23 06:38:50 +00:00
C# Refactor For Webhook Queue (#1818)
* Working on Webhook Queue Changes. * Initial Push w/ Webhook Work. * Initial Push. Working on Testing. * Moving InstanceId * Removing primitives. * Formatting. * Fixing formatting? * Moving GetInstanceId to containers. * Moving comments for formatting. * Removing unused dependency. * Comments. * Add WebhookEventGrid test. * Fixing how tests work. * Working to resolve conflicts. * Resolving conflicts. * Fixing chagnes. * Tested code. * Formatting. * MoreFormatting. * More formatting. * Fixing syntax. * Fixing syntax. * Removing test and webhookmessagelogoperation class. * Using config. * Fixing ProxyOperations.
This commit is contained in:
committed by
GitHub
parent
af7d815e4f
commit
0b1c7aea9c
@ -45,7 +45,8 @@ public class Program {
|
||||
return loggers;
|
||||
}
|
||||
|
||||
|
||||
//Move out expensive resources into separate class, and add those as Singleton
|
||||
// ArmClient, Table Client(s), Queue Client(s), HttpClient, etc.
|
||||
public static void Main() {
|
||||
var host = new HostBuilder()
|
||||
.ConfigureFunctionsWorkerDefaults(
|
||||
@ -82,7 +83,7 @@ public class Program {
|
||||
.AddScoped<IConfig, Config>()
|
||||
|
||||
//Move out expensive resources into separate class, and add those as Singleton
|
||||
// ArmClient, Table Client(s), Queue Client(s), HttpClient, etc.
|
||||
// ArmClient, Table Client(s), Queue Client(s), HttpClient, etc.\
|
||||
.AddSingleton<ICreds, Creds>()
|
||||
.AddSingleton<IServiceConfig, ServiceConfiguration>()
|
||||
.AddHttpClient()
|
||||
|
Reference in New Issue
Block a user