Skip to content

docs: Update Readme #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,28 @@
## Security

- ClaimsPrincipalExtensions: Extension methods to get a user ID and roles.
- `GetUserId`
- `GetRoles`

## Extensions

- StringExtensions: Extension methods to slugify a string and to validate a string is a valid url.
- HttpExtensions: Extension methods to validate a Uri by attempting to make a GET request to it.
- StringExtensions: Extension methods for `System.String`
- `ValidateUrlString`: Extension method to validate a URL string by checking to make sure the string is formatted correctly.
- `CreateUrlSlug`: Extension method modify a string so that it is URL compatible
- HttpExtensions: Extension methods for `System.Net.Http.HttpClient`
`ValidateUri`: Extension methods to validate a Uri by attempting to make a GET request to it.
- SystemLinqExtensions
- `WhereNotNull`: Extension method to allow return of non-null value from a null object.
- Sample:

```csharp
List<string?> listWithSomeNullValues = ["this", null, "is", null, "my", null, "favorite", null];
List<string> listWithoutNullValues = listWithSomeNullValues.WhereNotNull().ToList();
// returns ["this", "is", "my", "favorite"]
```

- On:
- `System.Linq.Generic.IEnumerable<T>`

## Contributing

Expand Down