RetackAI.AspNetSdk.NuGet 1.0.0

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

// Install RetackAI.AspNetSdk.NuGet as a Cake Tool
#tool nuget:?package=RetackAI.AspNetSdk.NuGet&version=1.0.0                

Retack-AI SDK (1.0.1) for ASP.NET

Overview

This SDK provides integration with Retack-AI for ASP.NET projects, allowing you to report errors to Retack-AI for analysis and monitoring.

Installation

To install the Retack-AI SDK in your ASP.NET project, follow these steps:

  1. Install the Retack-AI package from NuGet:

    dotnet add package RetackAI.NuGet.AspNetSdk 1.0.1
    
  2. how to configure the SDK with the Retack-AI API key and how to use the ReportErrorAsync method to report errors.

         using RetackAISDK;
    
         class Program
         {
             static async Task Main(string[] args)
             {
                 // Configure Retack-AI SDK
                 var retackConfig = new RetackConfig("YOUR_API_KEY");
                 var retackClient = new RetackClient(retackConfig);
    
                 try
                 {
                     // Your application code that may throw exceptions
                 }
                 catch (Exception ex)
                 {
                     // Construct user context
                     var userContext = new UserContext
                     {
                         UserName = "user@retack.io",
                         Extras = new Dictionary<string, string>
                         {
                             { "key1", "value1" },
                             { "key2", "value2" }
                         }
                     };
                     // Report error to Retack-AI
                     var success = await retackClient.ReportErrorAsync(ex.Message, ex.StackTrace, userContext);
                     if (success)
                     {
                         Console.WriteLine("Error reported successfully to Retack-AI.");
                     }
                     else
                     {
                         Console.WriteLine("Failed to report error to Retack-AI.");
                     }
                 }
             }
         }
    
    

Usage

Once the Retack-AI SDK is installed and configured in your ASP.NET project, you can use it to report errors to Retack-AI for analysis and monitoring. To report an error, simply make a POST request to the /report-error endpoint with the appropriate error information in the request body.

Contributing

Contributions are welcome! If you encounter any issues with the SDK or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  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. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 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
1.0.0 99 5/2/2024