Skip to content
Feralin

Developers

C# / .NET / ASP.NET: quickstart

Install and first-use steps for sending events to Feralin with C# / .NET / ASP.NET. Code samples come from the SDK's own README and statuses from the capability record.

Install

Feralin.Sdk, Feralin.Sdk.AspNetCore 0.1.0 is published on NuGet; install it with your package manager using the command below.

dotnet pack src/Feralin.Sdk/Feralin.Sdk.csproj -c Release -o ./paketler
dotnet pack src/Feralin.Sdk.AspNetCore/Feralin.Sdk.AspNetCore.csproj -c Release -o ./paketler
dotnet add package Feralin.Sdk.AspNetCore --version 0.1.0 --source ./paketler

First use

builder.Services.AddFeralin(o =>
{
    o.ProjectKey = builder.Configuration["Feralin:ProjectKey"]!; // pk_… anahtarı; kaynak koda yazmayın
    o.CollectUrl = "https://collect.example.com";
});

app.MapPost("/orders", (OrderRequest order, FeralinClient feralin) =>
{
    // İzin kararı son kullanıcınındır; uygulamadan olay başına geçirilir.
    feralin.Track(
        "order_completed",
        new Dictionary<string, object?> { ["order_id"] = order.Id, ["fr_click"] = order.ClickId },
        new TrackOptions { UserId = order.UserId, Consent = new Consent(order.Analytics, order.Advertising) });
    return Results.Accepted();
});

Code samples are taken as they are from sdks/dotnet/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

C# / .NET / ASP.NET capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentitySupported
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

C# / .NET / ASP.NET verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.