Skip to content
a collection of helper extension methods
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
SanPellgrino.sln

README.md

SanPellgrino

NuGet

a collection of helper extension methods

ForEach

foreach in linq-style

await ownEvents
    .Union(overridableEvents)
    .Union(allRestaurantEvents)
    .ForEachAsync(async e => await _mediator.Send(new ExcludeRestaurantsFromEventCommand(Tenant, e.EventId, RestaurantId.Id.ToString(),
        requesterUserRole, requester))
    );

ToArray

Convert T to an IEnumerable

await _mediator.Send(
    new ExcludeRestaurantsFromEventCommand(Tenant, 
        offlineEvent.EventId, 
        RestaurantId.ToArray(),
        requesterUserRole, 
        requester
        )
    );
You can’t perform that action at this time.