Aware 1.0.4
dotnet add package Aware --version 1.0.4
NuGet\Install-Package Aware -Version 1.0.4
<PackageReference Include="Aware" Version="1.0.4" />
<PackageVersion Include="Aware" Version="1.0.4" />
<PackageReference Include="Aware" />
paket add Aware --version 1.0.4
#r "nuget: Aware, 1.0.4"
#:package Aware@1.0.4
#addin nuget:?package=Aware&version=1.0.4
#tool nuget:?package=Aware&version=1.0.4
[Aware]
[Aware] is a .NET Core lightweight library for simplifying backend project management with minimum code effort and rapidly]. A sample Ticket Sales API project that use power of Aware is available at Github page.
Installation
Using the NuGet Package Manager
- Open your project in Visual Studio.
- Go to Tools → NuGet Package Manager → Manage NuGet Packages for Solution....
- Search for
[Aware]
. - Click Install.
Using the .NET CLI
Run the following command in your project directory:
dotnet add package Aware
Using the PackageReference
If you prefer adding the dependency manually, edit your .csproj
file and add:
<ItemGroup>
<PackageReference Include="Aware" Version="[VersionNumber]" />
</ItemGroup>
Replace [VersionNumber]
with the desired version (you can check available versions on the NuGet page.
Changes
Version 1.0.4
- IAwareCache removed on behalf of IDistributedCache. Now memory cache or redis cache automatically injected according to AwareSettings.CacherType value.
- RedisUrl added to AwareSettings to configure redis.
- ApplicationName added to AwareSettings. For now, Aware use it to configure RedisInstanceName.
- AwareDependencyInstaller updated to configure caching based on AwareSettings.CacherType value.
- SaveBulk method added to BaseManager
- WithManager(), SearchBy(), First(), Search() methods added to SearchParams class to improve searching experience.
- Small code fixes & refactorings
- Ticket Sales Web API repository updated based on these changes
Version 1.0.3
- MenuItemManager and SliderItemManager added for menu and slider needs.
- AwareDependencyInstaller enhancements & refactors : WithMenuManagement, WithSliderManagement, WithEntityFramework
- Search improvements : AwareAuthorizedSearchController added for custom search params usage.
- Search improvements : sort operations are now more stable.
- BaseManager and UnitOfWork now has Any() method support.
- DependencySettings renamed as AwareSettings and moved to Aware.Util namespace and now can be configured from appsettings.json file and can injected as IOptions<AwareSettings>
- You can now configure deletion mode as Hard Delete or Soft delete. Default value is Hard Delete but can be configure from AwareSettings
- BaseManager now has Active() and Passive() methods which allow to change state or status of an entity.
- Small code fixes & refactorings
- Ticket Sales Web API repository updated based on these changes
Version 1.0.2
- UserManager now has JWT Web Token support
- AwareJwtMiddleware added to handle JWT Web Token validation
- AwareDependencyInstaller improved to take a settings parameter, DbContextFactory class moved to Aware. You can now add EF support by calling InstallEntityFramework<YourDbContext>().
- IBaseManager<EventEntity, EventItemDto> simplified to IBaseManager<EventItemDto>
- Search iprovements
- AwareEmptyController, AwareController and AwareAuthorizedController added to init controllers and enable access to Current logged in user info for authorized pages
- DateModified and UserModied fields of BaseEntity are now nullable.
- Small code fixes & refactorings
- Ticket Sales Web API repository updated based on these changes
Usage
//Configure Aware Functionality, check arrange method
var libraryInstaller = new LibraryInstaller();
libraryInstaller.Arrange(builder.Services, builder.Configuration, Assembly.GetExecutingAssembly());
//Customize Aware dependency installation
public class LibraryInstaller : AwareDependencyInstaller
{
public void Arrange(IServiceCollection services, IConfiguration configuration, Assembly callerAssembly)
{
Install(services, configuration, callerAssembly)
.WithMenuManagement(services, Settings.ServiceLifetime)
.WithSliderManagement(services, Settings.ServiceLifetime)
.WithEntityFramework<TicketSalesDbContext>(services)
.WithJwtAuthentication(services, configuration);
services.AddAuthorization();
}
}
//Controller for CRUD operations
public class EventController(IEventService eventService, IEventSessionService eventSessionService) : AwareAuthorizedSearchController<EventItemDto, EventSearchParams>(eventService)
{
}
//And here is the EventService and IEventService with empty body :)
public interface IEventService : IBaseManager<EventEntity, EventItemDto> { }
public class EventService(IServiceProvider serviceProvider) : BaseManager<EventEntity, EventItemDto>(serviceProvider), IEventService { }
Supported Platforms
- .NET 8
- .NET 7
- .NET 6
- .NET 5
License
This package is licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.11)
- Microsoft.EntityFrameworkCore (>= 8.0.1)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.11)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- StackExchange.Redis (>= 2.8.24)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.