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