benxu.AppPlatform.Billing.Core
3.0.4
dotnet add package benxu.AppPlatform.Billing.Core --version 3.0.4
NuGet\Install-Package benxu.AppPlatform.Billing.Core -Version 3.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="benxu.AppPlatform.Billing.Core" Version="3.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="benxu.AppPlatform.Billing.Core" Version="3.0.4" />
<PackageReference Include="benxu.AppPlatform.Billing.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add benxu.AppPlatform.Billing.Core --version 3.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: benxu.AppPlatform.Billing.Core, 3.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package benxu.AppPlatform.Billing.Core@3.0.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=benxu.AppPlatform.Billing.Core&version=3.0.4
#tool nuget:?package=benxu.AppPlatform.Billing.Core&version=3.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
benxu.AppPlatform.Billing.Core
訂閱計費的核心抽象層,定義介面與模型,不依賴任何具體實作。
功能
ISubscriptionService- 訂閱服務核心介面IEntitlementProvider- 權限判斷介面ISubscriptionSyncService- 後端同步介面- 完整的訂閱狀態與商品模型
安裝
dotnet add package benxu.AppPlatform.Billing.Core
模型
| 類別 | 說明 |
|---|---|
SubscriptionStatus |
訂閱狀態(含到期時間、自動續訂等) |
Entitlement |
權限資訊 |
ProductInfo |
商品資訊(價格、週期等) |
PurchaseResult |
購買結果 |
OfferingsInfo |
Offerings/Packages(RevenueCat 概念) |
使用方式
此套件為抽象層,需搭配實作套件使用(如 benxu.AppPlatform.Billing.RevenueCat)。
// 注入 ISubscriptionService
public class MyPage
{
private readonly ISubscriptionService _subscription;
public MyPage(ISubscriptionService subscription)
{
_subscription = subscription;
}
private async Task CheckSubscription()
{
if (_subscription.IsSubscribed)
{
// 顯示 Premium 內容
}
else
{
// 顯示 Paywall
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on benxu.AppPlatform.Billing.Core:
| Package | Downloads |
|---|---|
|
benxu.AppPlatform.Billing.RevenueCat
RevenueCat integration for in-app subscriptions in .NET MAUI. Provides real SDK integration for Android/iOS with optional simulator mode for testing. |
GitHub repositories
This package is not used by any popular GitHub repositories.