- Had to add extra logic to track document structure changes so listeners could know if an event was on its way or not.
- Added and fixed some tests.
#1748
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.
Branches:
rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1
SendAsync was using InvokeCoreAsync code to send messages. In case of exception InvokeCoreAsync is blocking and returns a task to the user so they can await for the remote call to complete. Any exception thrown is caught and used to fail the task returned to the user. SendAsync does not return a special task to the user so re-using InvokeCore resulted in swallowing exceptions. While SendAsync is fire and forget it actually should throw if the message could not be send and it was not happening.
While adding tests it turned out we did not test cases where Invoke/SendAsync/StreamAsync were invoked before starting the connection and this resulted in a NullReferenceException. I also fixed that.
- Today we use localhost which binds to both the ipv4 and ipv6 addresses.
ANCM never communicates over ipv6 so it's pointless. This should also properly crash
the process if the ipv4 address fails to bind (which we've seen reports in real applications for).
When the client cancels a streaming method the server would send an error completion. This was not correct because cancellation is not an error. We did not see this because our client ignores any messages for a given streaming invocation after sending a CancelInvokationMessage but other clients may want to drain messages before considering a streaming method canceled.
Submodule modules/Configuration 94a5f9e3..6cc477ed:
> Pin tool and package versions to make builds more repeatable
Submodule modules/EntityFrameworkCore e70d7daef..e76f8f3d1:
> Pin tool and package versions to make builds more repeatable
Submodule modules/HttpClientFactory 8a6433460..126e68136:
> Pin tool and package versions to make builds more repeatable
Submodule modules/HttpSysServer 02331040a..db210af71:
> Pin tool and package versions to make builds more repeatable
Submodule modules/IISIntegration 94c895a1b..a42c8a33b:
> Return FINISH_REQUEST on request failure (#469)
> Pin tool and package versions to make builds more repeatable
Submodule modules/JsonPatch e453fafad..478c640a6:
> Pin tool and package versions to make builds more repeatable
Submodule modules/KestrelHttpServer 0c34523e8..6c82f78c6:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Localization 98484b828..115271d1c:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Microsoft.Data.Sqlite 791993269..a2b6f5f7d:
> Pin tool and packages versions to make builds more repeatable
Submodule modules/MusicStore 1c0aeb08b..b8c118056:
> Pin tool and package versions to make builds more repeatable
Submodule modules/MvcPrecompilation 00dd638c4..976ddc2ef:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Options 7e46634d3..e762d2070:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Proxy 0d1e23194..6b507eb64:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Razor 6c7551d9c..4d737af16:
> Pin tool and package versions to make builds more repeatable
Submodule modules/ResponseCaching 85bd16418..f616f3e89:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Routing bb413c6ac..f4fb178f5:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Security 88cb3df0e..bd8ecd026:
> Pin tool and package versions to make builds more repeatable
> Refactor OIDC event tests
Submodule modules/ServerTests f1e0205b9..20837fe04:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Session a29e7cf687..f7f89cdf8f:
> Pin tool and package versions to make builds more repeatable
Submodule modules/SignalR 2419867dfc..8c446fc02d:
> [Redis] Save a few bytes for acks (#1070)
> Pin package and tool versions to make build more repeatable
> Enabling byte[]
> Updating jasmine
> Updating msgpack5 to the latest version
Submodule modules/StaticFiles 5248d6057c..555f5c68ee:
> Pin tool and package versions to make builds more repeatable
Submodule modules/Testing 94569378d4..a6c6619f19:
> Pin tool and package versions to make builds more repeatable
Submodule modules/WebSockets f17facd329..5bbab01ba5:
> Pin tool and package versions to make builds more repeatable