Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:NServiceBus/NServiceBus

  • Loading branch information...
commit f93ba9de15a66735e791eb6a9b11ab99d476b185 2 parents 64412af + 60d9684
@udidahan udidahan authored
View
3  src/impl/SagaPersisters/InMemory/NServiceBus.SagaPersisters.InMemory/InMemorySagaPersister.cs
@@ -1,4 +1,5 @@
using System;
+using System.Linq;
using System.Collections.Generic;
using NServiceBus.Saga;
@@ -16,7 +17,7 @@ void ISagaPersister.Complete(ISagaEntity saga)
T ISagaPersister.Get<T>(string property, object value)
{
- foreach(var entity in data.Values)
+ foreach(var entity in data.Values.Where(x=>x.GetType() is T))
{
var prop = entity.GetType().GetProperty(property);
if (prop != null)
Please sign in to comment.
Something went wrong with that request. Please try again.