Unless you code in F#, it is strongly recommended to migrate to the new kit.
This kit can be installed using NuGet prismic package. To install prismic from the Package Manager Console, run the following command : PM> Install-Package prismic
(Feel free to detail the proper steps for beginners by submitting a pull request.)
You can find out how to get started with prismic.io on our prismic.io developer's portal.
Also on our prismic.io developer's portal, on top of our full documentation, you will:
You can find the documentation of the .NET kit as comments and unit tests within the kit's source code.
Thanks to .NET languages' syntax and conventions, this kit contains some mild differences and syntastic sugar over the section of our documentation that tells you how to use prismic.io kits in general (which you should read first). This kit has been written in F# and can be used from any .NET language. For your convenience though, if you are developing in C#, a set of extension methods is provided in the prismic.extensions namespace (prismic.extensions.dll).
The differences are listed here (F#):
Api.get
(Infra.NoCache() :> Infra.ICache<Api.Response>)
(Infra.Logger.NoLogger)
(Some("your-token"))
"https://lesbonneschoses.prismic.io/api")
api.Forms.["everything"].Ref(api.Master).Query("""[[:d = at(document.type, "docchapter")]]""").Submit()
Api.DocumentLinkResolver.For(fun l ->
(sprintf "http://localhost/%s/%s" l.typ l.id))
The differences are listed here (C#):
var form = api.Forms["everything"].Ref(api.Master).Query (@"[[:d = at(document.type, ""docchapter"")]]")
.Submit();
Here you will get an FSharpAsync type. If you do not want to deal with it, you can still fall back to a classic Task (from System.Threading.Tasks) by calling .SubmitableAsTask():
var form = api.Forms["everything"].Ref(api.Master).Query (@"[[:d = at(document.type, ""docchapter"")]]")
.SubmitableAsTask()
.Submit();
Need to see what changed, or to upgrade your kit? We keep our changelog on this repository's "Releases" tab.
Contribution is open to all developer levels, read our "Contribute to the official kits" documentation to learn more.
This kit gets installed like any .NET library.
(Feel free to detail the proper steps for beginners by submitting a pull request.)
Please write tests for any bugfix or new feature.
If you find existing code that is not optimally tested and wish to make it better, we really appreciate it; but you should document it on its own branch and its own pull request.
Please document any bugfix or new feature.
If you find existing code that is not optimally documented and wish to make it better, we really appreciate it; but you should document it on its own branch and its own pull request.
Please document any bugfix or new feature, using the Yard syntax. Don't worry about generating the doc, we'll take care of that.
If you find existing code that is not optimally documented and wish to make it better, we really appreciate it; but you should document it on its own branch and its own pull request.
We hope you'll get involved! Read our Contributors' Guide for details.
This software is licensed under Apache 2.0 license
Copyright 2013-2021 Prismic contact@prismic.io (https://prismic.io)