Skip to content

Commit

Permalink
Made fixes to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Sep 20, 2019
1 parent cc0a945 commit dd9be3d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SignalR30SensorClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static async Task Main(string[] args)
await using var hubConnection = hubConnectionBuilder.Build();
await hubConnection.StartAsync();

await hubConnection.SendAsync("PublishSensorData", args[0], GenerateSensorData());
await hubConnection.SendAsync("PublishSensorData", args.Length == 0 ? "x" : args[0], GenerateSensorData());

Console.ReadLine();
}
Expand Down
27 changes: 27 additions & 0 deletions SignalR30SensorWebApplication/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:60977/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"SignalR30SensorWebApplication": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5000/;https://localhost:5001"
}
}
}
3 changes: 1 addition & 2 deletions SignalR30SensorWebApplication/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseDeveloperExceptionPage();
}

app.UseDefaultFiles();
app.UseStaticFiles();
app.UseFileServer();

app.UseRouting();

Expand Down
2 changes: 1 addition & 1 deletion SignalR30SensorWebApplication/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Debug"
"Microsoft": "Information"
}
}
}

0 comments on commit dd9be3d

Please sign in to comment.