Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Remove no longer used code
Browse files Browse the repository at this point in the history
  • Loading branch information
tevoinea authored and Porges committed Aug 15, 2022
1 parent 5266046 commit 1fe5950
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ApiService/ApiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ public async Async.Task Invoke(FunctionContext context, FunctionExecutionDelegat
}
}


public static List<ILog> GetLoggers(IServiceConfig config) {
List<ILog> loggers = new List<ILog>();
foreach (var dest in config.LogDestinations) {
loggers.Add(
dest switch {
LogDestination.AppInsights => new AppInsights(config.ApplicationInsightsInstrumentationKey!),
LogDestination.Console => new Console(),
_ => throw new Exception($"Unhandled Log Destination type: {dest}"),
}
);
}
return loggers;
}


//Move out expensive resources into separate class, and add those as Singleton
// ArmClient, Table Client(s), Queue Client(s), HttpClient, etc.
public async static Async.Task Main() {
Expand Down

0 comments on commit 1fe5950

Please sign in to comment.