示例#1
0
 public void Remove(SagaInstance <TSaga> item)
 {
     lock (_lock)
         foreach (var index in _indices.Values)
         {
             index.Remove(item);
         }
 }
示例#2
0
 public void Add(SagaInstance <TSaga> instance)
 {
     lock (_lock)
         foreach (var index in _indices.Values)
         {
             index.Add(instance);
         }
 }
示例#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));
 }