public static Task <Guid?> FindIdByUniqueIndexedProperty <T>( this ISqlEventStore eventStore, string name, string value) where T : class, IEventSourced { if (eventStore == null) { throw new ArgumentNullException(nameof(eventStore)); } return(eventStore.FindIdByUniqueIndexedProperty <T>(name, value, CancellationToken.None)); }
public Task <Guid?> FindIdByUniqueIndexedProperty( string name, string value, CancellationToken cancellationToken) { if (name == null) { throw new ArgumentNullException(nameof(name)); } if (value == null) { throw new ArgumentNullException(nameof(value)); } return(_eventStore.FindIdByUniqueIndexedProperty <T>(name, value, cancellationToken)); }