An abp application module group that provides basic e-shop service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
gdlcf88 77218f18b6 Upgrade to ABP 7.4.0 2 years ago
..
src Upgrade to ABP 7.0.0 3 years ago
test/EasyAbp.EShop.Products.DaprActorsInventory.Domain.Tests Upgrade to ABP 7.4.0 2 years ago
README.md Add symlink 4 years ago

README.md

EShop.Plugins.Inventories.DaprActors

ABP version NuGet NuGet Download Discord online GitHub stars

EShop product-inventory implementation of Dapr Actors.

Installation

  1. Install the following NuGet packages. (see how)

    • EasyAbp.EShop.Products.DaprActorsInventory.Domain (install at EasyAbp.EShop.Products.Domain location)
    • EasyAbp.EShop.Plugins.Inventories.DaprActors.AspNetCore (install at a host project to run Actors)
  2. Add DependsOn(typeof(EShopXxxModule)) attribute to configure the module dependencies. (see how)

  3. Configure a state store for the inventory actor. (see how)

Usage

  1. Configure the DaprActors inventory provider as default.

    Configure<EShopProductsOptions>(options =>
    {
        // Configure as the default inventory provider
        options.DefaultInventoryProviderName = "DaprActors";
    
        // Configure as the default inventory provider for MyProductGroup
        options.Groups.Configure<MyProductGroup>(group =>
        {
            group.DefaultInventoryProviderName = "DaprActors";
        });
    });
    

    Better to use DaprActorsProductInventoryProvider.DaprActorsProductInventoryProviderName instead of "DaprActors" as the provider name.

  2. Create a product and set InventoryProviderName to DaprActors. Then the product is specified to use the Dapr Actors inventory provider.