Atomic.Transact.Blazor 0.2.2

dotnet add package Atomic.Transact.Blazor --version 0.2.2
NuGet\Install-Package Atomic.Transact.Blazor -Version 0.2.2
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="Atomic.Transact.Blazor" Version="0.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Atomic.Transact.Blazor --version 0.2.2
#r "nuget: Atomic.Transact.Blazor, 0.2.2"
#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.
// Install Atomic.Transact.Blazor as a Cake Addin
#addin nuget:?package=Atomic.Transact.Blazor&version=0.2.2

// Install Atomic.Transact.Blazor as a Cake Tool
#tool nuget:?package=Atomic.Transact.Blazor&version=0.2.2

Atomic Transact - Blazor

Setup

Shared - Before

  • Install the Atomic.Transact.Blazor Nuget Package located here Nuget
Blazor Server
  • Add <script src="/_content/Atomic.Transact/dist/atomic-transact.js"></script> to the body of your _Layout.cshtml file.
  • Acquire your Transact PublicToken and save it via in a way that works for you.
  • Configure the Atomic.Transact.Blazor.Config object with your needed settings and pass the value into the AtomicTransact.Config attribute as a parameter, see example: <AtomicTransact Config="[HERE]" />
Blazor WASM
  • Add <script src="_content/Atomic.Transact.Blazor/dist/atomic-transact.js"></script> to your index.html file.
  • Acquire your Transact PublicToken and save it via in a way that works for you.
  • Configure the Atomic.Transact.Blazor.Config object with your needed settings and pass the value into the AtomicTransact.Config attribute as a parameter, see example: <AtomicTransact Config="[HERE]" />

Shared - After

  • Configure your AtomicTransact.Environment parameter to be your associated environment such as
    • Environment.Production
    • Environment.Sandbox
    • See example: <AtomicTransact Environment="Environment.Production" />

Setup Example


<AtomicTransact Config="_config"
                Environment="Environment.Sandbox"
                OnInteraction="@((t) => OnInteractionHandler(t))" />
// The @code section of the blazor component

private bool _openTransact = false;

private TransactConfig _config;

protected override void OnInitialized()
{
    _config = new Config(_serverConfig["Transact:PublicToken"], new TransactTask(Product.Deposit));
    base.OnInitialized();
}

private void OnInteractionHandler(InteractionEvent e)
{
    _logger.LogInformation("Handled Interaction {EventName} Event", e.Name);
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.2 320 1/4/2023
0.2.1 286 1/4/2023
0.2.0 281 1/3/2023
0.1.0 339 2/18/2022