Exemplo n.º 1
0
 public void Remove(SagaInstance <TSaga> item)
 {
     lock (_lock)
         foreach (var index in _indices.Values)
         {
             index.Remove(item);
         }
 }
Exemplo n.º 2
0
 public void Add(SagaInstance <TSaga> instance)
 {
     lock (_lock)
         foreach (var index in _indices.Values)
         {
             index.Add(instance);
         }
 }
Exemplo n.º 3
0
 public bool Equals(SagaInstance <TSaga> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(EqualityComparer <TSaga> .Default.Equals(_instance, other._instance));
 }