LiamMorrow / OrgnalR

SignalR backplane implemented through Orleans
Apache License 2.0
35 stars 8 forks source link

Wait for cluster client to be active #32

Closed LiamMorrow closed 1 year ago

LiamMorrow commented 1 year ago

We had an issue (#29) where the cluster client wasn't ready by the time we got an observable reference. This caused a null reference exception.

We fixed it by adding a Task.Delay before subscribing. This commit uses the built in lifecycle methods of orleans to expose a task which lets a consumer wait until it is ready before using it.

closes: #29