EdjCase.ICP.InternetIdentity 2.1.1

Additional Details

Internet Identity has security issues and was experimental and no longer has support

There is a newer version of this package available.
See the version list below for details.
dotnet add package EdjCase.ICP.InternetIdentity --version 2.1.1                
NuGet\Install-Package EdjCase.ICP.InternetIdentity -Version 2.1.1                
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="EdjCase.ICP.InternetIdentity" Version="2.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EdjCase.ICP.InternetIdentity --version 2.1.1                
#r "nuget: EdjCase.ICP.InternetIdentity, 2.1.1"                
#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 EdjCase.ICP.InternetIdentity as a Cake Addin
#addin nuget:?package=EdjCase.ICP.InternetIdentity&version=2.1.1

// Install EdjCase.ICP.InternetIdentity as a Cake Tool
#tool nuget:?package=EdjCase.ICP.InternetIdentity&version=2.1.1                

ICP.NET

Collection of Internet Computer Protocol (ICP) libraries for .NET/Blazor

Quickstart

Creating a client for a canister

  • Prerequisite: Have .Net 6 installed (https://dotnet.microsoft.com/en-us/download/dotnet)

  • Navigate to directory of .Net project

    cd {path/to/project}
    
  • Add Agent nuget package to project

    dotnet add package EdjCase.ICP.Agent
    
  • Install ClientGenerator

    dotnet tool install -g EdjCase.ICP.ClientGenerator
    

    This will allow a client to be automatically be generated for a canister. See ClientGenerator README for more details and advanced config

  • Initialize ClientGenerator config (first run only)

    candid-client-generator init
    

    This will create a TOML config file in the directory that can be changed for more advanced options

  • Update created config file candid-client.toml

    If using a canister id:

    namespace = "ProjectGovernance" # Base namespace to use
    output-directory = "./Clients" # Output directory
    
    [[clients]]
    name = "Governance" # Label of client to use
    type = "canister" # Indicates to make client from a canister id
    canister-id = "rrkah-fqaaa-aaaaa-aaaaq-cai" # Canister id to make client for
    

    If using a service definition file (.did)

    namespace = "ProjectGovernance" # Base namespace to use
    output-directory = "./Clients" # Output directory
    
    [[clients]]
    name = "Governance" # Label of client to use
    type = "file" # Indicates to make client from a service definition file
    file-path = "Governance.did" # File to use
    

    For all configuration options see ClientGenerator README for more details

  • Generate Client

    candid-client-generator gen
    

    Will output C# file to the output directory specified in the config

  • Use client in code

    var agent = new HttpAgent();
    Principal canisterId = Principal.FromText("rrkah-fqaaa-aaaaa-aaaaq-cai");
    var client = new GovernanceApiClient(agent, canisterId);
    OptionalValue<Sample.Shared.Governance.Models.ProposalInfo> proposalInfo = await client.GetProposalInfo(110174);
    ...
    
  • SHIP IT! 🚀

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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
3.2.0 184 8/2/2023
3.1.5 131 9/27/2023
3.1.4 262 7/20/2023 3.1.4 is deprecated because it is no longer maintained and has critical bugs.
3.1.3 191 6/12/2023 3.1.3 is deprecated because it is no longer maintained and has critical bugs.
3.1.2 175 5/11/2023 3.1.2 is deprecated because it is no longer maintained and has critical bugs.
3.1.1 176 5/9/2023 3.1.1 is deprecated because it is no longer maintained and has critical bugs.
3.1.0 166 5/9/2023 3.1.0 is deprecated because it is no longer maintained and has critical bugs.
3.0.1 182 5/2/2023 3.0.1 is deprecated because it is no longer maintained and has critical bugs.
3.0.0 182 5/1/2023 3.0.0 is deprecated because it is no longer maintained and has critical bugs.
3.0.0-beta.1 139 4/17/2023 3.0.0-beta.1 is deprecated because it is no longer maintained and has critical bugs.
2.3.9 179 5/1/2023 2.3.9 is deprecated because it is no longer maintained and has critical bugs.
2.3.8 192 4/28/2023 2.3.8 is deprecated because it is no longer maintained and has critical bugs.
2.3.7 191 4/28/2023 2.3.7 is deprecated because it is no longer maintained and has critical bugs.
2.3.6 191 4/28/2023 2.3.6 is deprecated because it is no longer maintained and has critical bugs.
2.3.5 205 4/27/2023 2.3.5 is deprecated because it is no longer maintained and has critical bugs.
2.3.4 198 4/27/2023 2.3.4 is deprecated because it is no longer maintained and has critical bugs.
2.3.3 187 4/26/2023 2.3.3 is deprecated because it is no longer maintained and has critical bugs.
2.3.2 183 4/26/2023 2.3.2 is deprecated because it is no longer maintained and has critical bugs.
2.3.1 210 4/26/2023 2.3.1 is deprecated because it is no longer maintained and has critical bugs.
2.3.0 213 4/25/2023 2.3.0 is deprecated because it is no longer maintained and has critical bugs.
2.2.10 196 4/24/2023 2.2.10 is deprecated because it is no longer maintained and has critical bugs.
2.2.9 181 4/24/2023 2.2.9 is deprecated because it is no longer maintained and has critical bugs.
2.2.8 225 4/24/2023 2.2.8 is deprecated because it is no longer maintained and has critical bugs.
2.2.7 205 4/17/2023 2.2.7 is deprecated because it is no longer maintained and has critical bugs.
2.2.6 236 4/12/2023 2.2.6 is deprecated because it is no longer maintained and has critical bugs.
2.2.5 217 4/12/2023 2.2.5 is deprecated because it is no longer maintained and has critical bugs.
2.2.4 220 4/11/2023 2.2.4 is deprecated because it is no longer maintained and has critical bugs.
2.2.3 224 4/11/2023 2.2.3 is deprecated because it is no longer maintained and has critical bugs.
2.2.2 225 4/7/2023 2.2.2 is deprecated because it is no longer maintained and has critical bugs.
2.2.1 215 4/7/2023 2.2.1 is deprecated because it is no longer maintained and has critical bugs.
2.2.0 225 4/6/2023 2.2.0 is deprecated because it is no longer maintained and has critical bugs.
2.1.1 248 3/30/2023 2.1.1 is deprecated because it is no longer maintained and has critical bugs.
2.1.0 265 3/23/2023 2.1.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.8 281 3/20/2023 2.0.8 is deprecated because it is no longer maintained and has critical bugs.
2.0.7 265 3/12/2023 2.0.7 is deprecated because it is no longer maintained and has critical bugs.
2.0.2 264 3/10/2023 2.0.2 is deprecated because it is no longer maintained and has critical bugs.
2.0.1 266 3/10/2023 2.0.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 274 3/8/2023 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.26 140 3/8/2023 2.0.0-beta.26 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.25 140 3/8/2023 2.0.0-beta.25 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.24 133 3/7/2023 2.0.0-beta.24 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.23 135 3/6/2023 2.0.0-beta.23 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.22 135 3/1/2023 2.0.0-beta.22 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.21 136 2/28/2023 2.0.0-beta.21 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.20 142 2/20/2023 2.0.0-beta.20 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.19 145 2/14/2023 2.0.0-beta.19 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.18 135 2/14/2023 2.0.0-beta.18 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.17 144 2/14/2023 2.0.0-beta.17 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.16 137 2/11/2023 2.0.0-beta.16 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.15 142 2/10/2023 2.0.0-beta.15 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.14 146 2/6/2023 2.0.0-beta.14 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.13 142 2/3/2023 2.0.0-beta.13 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.12 148 2/2/2023 2.0.0-beta.12 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.11 153 1/30/2023 2.0.0-beta.11 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.10 152 1/23/2023 2.0.0-beta.10 is deprecated because it is no longer maintained and has critical bugs.
2.0.0-beta.9 148 1/19/2023 2.0.0-beta.9 is deprecated because it is no longer maintained and has critical bugs.