Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
satvu committed Apr 11, 2023
1 parent d78df3e commit 5099bac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
28 changes: 1 addition & 27 deletions samples/FunctionApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Program
{
static async Task Main(string[] args)
{
Debugger.Launch();
//Debugger.Launch();

var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults(builder =>
Expand All @@ -23,32 +23,6 @@ static async Task Main(string[] args)
.Build();

await host.RunAsync();

/* // #if DEBUG
// Debugger.Launch();
// #endif
//<docsnippet_startup>
var host = new HostBuilder()
//<docsnippet_configure_defaults>
.ConfigureFunctionsWorkerDefaults(builder =>
{
builder
.AddApplicationInsights()
.AddApplicationInsightsLogger();
})
//</docsnippet_configure_defaults>
//<docsnippet_dependency_injection>
.ConfigureServices(s =>
{
s.AddSingleton<IHttpResponderService, DefaultHttpResponderService>();
})
//</docsnippet_dependency_injection>
.Build();
//</docsnippet_startup>
//<docsnippet_host_run>
await host.RunAsync();
//</docsnippet_host_run>*/
}
}
}
2 changes: 1 addition & 1 deletion src/DotNetWorker.Grpc/GrpcWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public GrpcWorker(IFunctionsApplication application,
_invocationFeaturesFactory = invocationFeaturesFactory ?? throw new ArgumentNullException(nameof(invocationFeaturesFactory));
_outputBindingsInfoProvider = outputBindingsInfoProvider ?? throw new ArgumentNullException(nameof(outputBindingsInfoProvider));
_methodInfoLocator = methodInfoLocator ?? throw new ArgumentNullException(nameof(methodInfoLocator));

_workerOptions = workerOptions?.Value ?? throw new ArgumentNullException(nameof(workerOptions));
_serializer = workerOptions.Value.Serializer ?? throw new InvalidOperationException(nameof(workerOptions.Value.Serializer));
_inputConversionFeatureProvider = inputConversionFeatureProvider ?? throw new ArgumentNullException(nameof(inputConversionFeatureProvider));
Expand Down
23 changes: 0 additions & 23 deletions src/DotNetWorker.Grpc/GrpcWorkerConstants.cs

This file was deleted.

0 comments on commit 5099bac

Please sign in to comment.