Skip to content

andryushchenko/AInq.Helpers

Repository files navigation

AInq.Helpers

GitHub release (latest by date) GitHub

AInq

What is it?

Collection of simple helpers for .Net

Packages description

Nuget AInq.Helpers.Linq

Helpers for IEnumerable<T> and IAsyncEnumerable<T>

  • Batch helper - pack the given enumerable in batches with a specified maximum batch size

Nuget AInq.Helpers.Polly

Helpers library to use with Polly

  • Ready to use retry policies with logging
    • TransientRetryAsyncPolicy for transient errors
    • TimeoutRetryAsyncPolicy for HTTP 429
  • Helpers to store data in Polly.Context
  • Helpers to execute HTTP requests with Polly.IAsyncPolicy<HttpResponseMessage>

Nuget AInq.Helpers.Email

Helpers to work with email address

  • Get emails form string source
  • Check if string is correct email
  • Get specific email address parts

Nuget AInq.Helpers.PhoneNumber

Helpers to parse phone numbers from string

  • Get all valid numbers or mobile only
  • Parse one source with different regional formats at one call

This library uses libphonenumber-csharp inside

Documentation

As for now documentation is provided in this document and by XML documentation inside packages.

Contribution

If you find a bug, have a question or something else - you are friendly welcome to open an issue.

License

Copyright © 2021 Anton Andryushchenko. AInq.Helpers is licensed under Apache License 2.0