You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a static pipelinefactory in a dotnet core webapi.
.Exists and Unsubscribe dont seem to be working at all.
Everytime i check and unsubscibe in the constructor but it just keeps adding handlers
Any idea?
public DashboardHub(
//PubSubService pubSubService,
DashboardsService dashboardsService,
IPubSubPipelineFactory pubSubPipelineFactory,
IMemoryCache cache)
{
//_pubSubService = pubSubService;
_dashboardsService = dashboardsService;
_pubSubPipelineFactory = pubSubPipelineFactory;
_cache = cache;
if (_pubSubPipelineFactory.GetSubscriber().Exists<OrderDto>(this, OrderDtoChangedHandler))
{
// never hits this spot
}
if (_pubSubPipelineFactory.GetSubscriber().Exists<OrderDto>(this))
{
// never hits this spot
}
_pubSubPipelineFactory.GetSubscriber().Subscribe<OrderDto>(this, OrderDtoChangedHandler);
//works ok
}
The text was updated successfully, but these errors were encountered:
Hi,
I am using a static pipelinefactory in a dotnet core webapi.
.Exists and Unsubscribe dont seem to be working at all.
Everytime i check and unsubscibe in the constructor but it just keeps adding handlers
Any idea?
The text was updated successfully, but these errors were encountered: