public void DeleteStream(string stream, long expectedVersion, UserCredentials credentials = null) => EsConnection.DeleteStreamAsync(stream, expectedVersion, credentials.ToESCredentials()).Wait();
public void DeleteStream(string stream, int expectedVersion, UserCredentials credentials = null) => _conn.DeleteStreamAsync(stream, expectedVersion, credentials.ToESCredentials()).Wait();