EBBuildClient 1.0.40
See the version list below for details.
dotnet add package EBBuildClient --version 1.0.40
NuGet\Install-Package EBBuildClient -Version 1.0.40
<PackageReference Include="EBBuildClient" Version="1.0.40" />
paket add EBBuildClient --version 1.0.40
#r "nuget: EBBuildClient, 1.0.40"
// Install EBBuildClient as a Cake Addin #addin nuget:?package=EBBuildClient&version=1.0.40 // Install EBBuildClient as a Cake Tool #tool nuget:?package=EBBuildClient&version=1.0.40
EB Build API Client
The Official API Client for Blockchain-based Cloud Storage Services!
Features
If your application requires cloud storage of unstructured JSON or key/value paired data, the EB Build client is an affordable and extremely fast alternative to any of the following solutions:
- Couchbase
- Redis
- DynamoDB
- MongoDB
Benefits
- ✨Extremely affordable fixed fee pricing!
- ✨Extremely secure blockchain encryption!
- ✨Extremely fast event messaging!
- ✨Extremely scalable with built-in cluster-wide auto-scaling!
- ✨Extremely simple integration with dynamic environments!
Obtaining a Sandbox API Key
EBBuild cloud services can be accessed via our sandbox for a limited time. The EBBuild Client requires an API key before using the sandbox. Obtaining a sandbox API key is extremely easy! Follow the next steps to obtain an API key.
- ** Send an email with your company name to: keyrequest@everythingblockchain.io**
Pre-Installation Steps:
#1. Click Here to Create a Private Cluster
#2. Click Here to Download the EBBuild Client via nuget
#3. Add the following dependencies to your project:
3.1 Microsoft.AspNetCore.SignalR.Client version 7.0.2 (or higher)
3.2 Microsoft.AspNetCore.SignalR.Protocols.MessagePack version 7.0.2 (or higher)
Post-Installation Steps:
#1 After creating a private cluster you will receive an automated email with the following:
#1.1 A link to your private cluster in the cloud.
#1.2 A security token required to store and retrieve data.
#2 Install the EBBuild Client nuget package into your Microsoft Visual Studio project.
#3 Add an appsettings.json file to project, if you don't already have an appsettings.json file added.
#4 Add the following values to the root of your appsettings.json file added to your project:
- {
"EbbuildApiBaseUri": [enter the url provided by EBI, INc],
- "EbbuildApiToken": [enter the API key obtained supplied to you.],
- "EbbuildApiRoles": [enter user groups here. For example you could enter: "Testers"],
"EbbuildRegistrationHost": [enter the name of company or entity: "Company ABC, Inc"],
"EbbuildConfigValuesPath": "[if your configuration values are stored with a prefix like: "Settings:EbbuildApiToken",
then set this to "Settings" so that the API Client can successfully find your values in
your appsettings.json file]. Otherwise, leave this empty with double quotes."
}
How To's
#1 After installing the EBBuildClient nuget package, add the following to your code:
using EBBuildClient.Core;
#2 EBBuild allows you to store json data without any class/object or a concrete class/object.
For example, if you have the following defined data type and if you wanted to store its data
onto the EBBuild cloud storage services, you would following for following example.
public class SampleDataClass
{
public string ID {get;set;}
public string Name {get; set;}
public AddressClass Address1 {get; set;}
}
public class AddressClass
{
public string City {get; set;}
public string State {get; set;}
public string Zip {get; set;}
}
#3 The EBBuild cloud services support both REST and Websocket endpoints.
Addtionally, the EBBuild client allows you to connect eith using REST or a Websocket.
#4 Initialize the core EBBuild services in the following manner:
#4.1 EBBuildApiFactory : This class is the core object used to manage connection objects.
EBBuildApiFactory _ebBuildDBApiServiceFactory = new EBBuildApiFactory(
_maxConnections,
Program._configuation,
_ebbuildDBUserEmail,
_ebbuildDBTenantId,
_ebbuildDBLedgerPreface,
_ebbuildDBLedgerName,
_ebbuildDBApiBaseUri,
_maxRecordsReturned,
_ebbuildDBUseWebSockets);
#4.2 IEBBuildAPIService : This interface is used for all connection object created by the EBBuildApiFactory.
IEBBuildAPIService _client1 = _ebBuildDBApiServiceFactory.GetApiClient();
#4.3 EBBuildAPIService : This is a static class used to calling all CRUD methods.
List<string> recordList = EBBuildAPIService.GetLedgerRecords<string>(
_filters,
_client1).Result;
List<string> recordList = EBBuildAPIService.GetLedgerRecords<string>(
_filters,
_ebBuildDBApiServiceFactory.GetApiClient()).Result;
List<SampleDataClass> recordList = EBBuildAPIService.GetLedgerRecords<SampleDataClass>(
_filters,
_ebBuildDBApiServiceFactory.GetApiClient()).Result;
#5 The EBBuild cloud servics support query filters used to filter data objects.
#6 To simplify creating filter conditions, the EBBuild client provides a filter builder.
#6.1 List<string> _filters = EBIBuildAPIHelper.BuildFilter(
_filters,
"email",
FilterOperation.EQ,
"dummyuser15@gmail.com");
#6.2 List<string> _filters = EBIBuildAPIHelper.BuildFilter(
_filters,
"email",
FilterOperation.EQ,
"dummyuser15@gmail.com",
BooleanOperation.AND);
NOTE: If you require raw data, then use our internal RawDataType class type.
NOTE: The RawDataType class has a single property called "RawData" or simply use the "String" data
type which will contain your unstructured json payload.
RawDataType rawData = await EBBuildAPIService.GetLedgerRecord<RawDataType>(EBBuildAPIServices);
string rawData = await EBBuildAPIService.GetLedgerRecord<string>(EBBuildAPIServices);
Set the following required parameters.
Microsoft.Extensions.Configuration.IConfiguration configuration;
string email = "a valid email address";
string tenantID = "any unique string to identify your organization";
string ledgerPreface = "any string to identify your ledger. i.e.: prod, qa, dev, crypto, etc.";
string ledgerName = "any name of your ledger where your data class will be stored. i.e. payments";
NOTE: If you do not specify a ledgername then the email address will automatically be used as the ledger name.
If you specify a ledgerPreface then the ledgerPreface will be prepended to the ledger name.
#7. To enforce multi-factor authentication (MFA) you can set the enableMFA parameter.
NOTE: When saving data to the ledger, if you set the MFA parameter to "true" and if suspicious read access to the
ledger is detected that read access will be block temporarily until an email challenge is sent to you
(the owner of the ledger to allow you an opportunity to block or allow access).
bool enableMFA = true;
string blockTypeName = "SampleDataClass";
- EBBuildAPIService.SaveDataToLedger(
dataContext,
EBBuildAPIServices,
enableMFS,
blockTypeName);
Adding Filter Conditions
Operation | Description | Example | Notes |
---|---|---|---|
Regexp | Regular expressions | {LastName:REGEX:\b[L]\w+} | ie: Match the lastname that begins with the letter "L". See the "Regular Expression - Documentation (below)" |
Or | Logical OR | {FirstName:EQ:Joe:OR},{LastName:EQ:Biden} | Filter conditions combine multiple filter conditions by adding an optional "AND" "OR" boolean operator to the end of each filter. |
Gt, Gte | Greater than or equal. | {Age:Gte:25} | |
Le, Lte | Less than or less than or equal. | {Age:Lte:25} | |
Between | Between two values. | {Age:BETWEEN:[10;41]} | |
Inq, Nin | In or not inv an array of values. | {City:Inq:[New York; Phoenix; London; Miami; Berlin]} | |
Eq | Equal. | {LastName:Eq:”Miller”} | |
Neq | Not equal. | {LastName:Neq:”Miller”} | |
Like, NLike | Like or not like a value. | {LastName:Like:”Miller”} | |
ILike, NiLike | Case insensitive like and not like. | {LastName:ILike:”Miller”} | |
BEGINSWITH | Begins with | {LastName:BEGINSWITH:”M”} | |
ISNULL, ISNOTNULL | IsNull or IsNotNull | {LastName:ISNULL:””} {LastName:ISNOTNULL:””} |
Regular Expression - Documentation
Character | What does it do? |
---|---|
\ | Used to indicate that the next character should NOT be interpreted literally. For example, the character 'w' by itself will be interpreted as 'match the character w', but using '\w' signifies 'match an alpha-numeric character including underscore'.Used to indicate that a metacharacter is to be interpreted literally. For example, the '.' metacharacter means 'match any single character but a new line', but if we would rather match a dot character instead, we would use '.'. |
^ | Matches the beginning of the input. If in multiline mode, it also matches after a line break character, hence every new line. When used in a set pattern ([^abc]), it negates the set; match anything not enclosed in the brackets |
$ | Matches the end of the input. If in multiline mode, it also matches before a line break character, hence every end of line. |
* | Matches the preceding character 0 or more times. |
+ | Matches the preceding character 1 or more times. |
? | Matches the preceding character 0 or 1 time. When used after the quantifiers *, +, ? or {}, makes the quantifier non-greedy; it will match the minimum number of times as opposed to matching the maximum number of times. |
. | Matches any single character except the newline character. |
(x) | Matches 'x' and remembers the match. Also known as capturing parenthesis. |
(?:x) | Matches 'x' but does NOT remember the match. Also known as NON-capturing parenthesis. |
x(?=y) | Matches 'x' only if 'x' is followed by 'y'. Also known as a lookahead. |
x(?!y) | Matches 'x' only if 'x' is NOT followed by 'y'. Also known as a negative lookahead. |
x | y | Matches 'x' OR 'y'. |
{n} | Matches the preceding character exactly n times. |
{n,m} | Matches the preceding character at least n times and at most m times. n and m can be omitted if zero.. |
[abc] | Matches any of the enclosed characters. Also known as a character set. You can create range of characters using the hyphen character such as A-Z (A to Z). Note that in character sets, special characters (., *, +) do not have any special meaning. |
[^abc] | Matches anything NOT enclosed by the brackets. Also known as a negative character set. |
[\b] | Matches a backspace. |
\b | Matches a word boundary. Boundaries are determined when a word character is NOT followed or NOT preceded with another word character. |
\B | Matches a NON-word boundary. Boundaries are determined when two adjacent characters are word characters OR non-word characters. |
\cX | Matches a control character. X must be between A to Z inclusive. |
\d | Matches a digit character. Same as [0-9] or [0123456789]. |
\D | Matches a NON-digit character. Same as [^0-9] or [^0123456789]. |
\f | Matches a form feed. |
\n | Matches a line feed. |
\r | Matches a carriage return. |
\s | Matches a single white space character. This includes space, tab, form feed and line feed. |
\S | Matches anything OTHER than a single white space character. Anything other than space, tab, form feed and line feed. |
\t | Matches a tab. |
\v | Matches a vertical tab. |
\w | Matches any alphanumeric character including underscore. Equivalent to [A-Za-z0-9_]. |
\W | Matches anything OTHER than an alphanumeric character including underscore. Equivalent to [^A-Za-z0-9_]. |
\x | A back reference to the substring matched by the x parenthetical expression. x is a positive integer. |
\0 | Matches a NULL character. |
\xhh | Matches a character with the 2-digits hexadecimal code. |
\uhhhh | Matches a character with the 4-digits hexadecimal code. |
Company Contact Information
Contact | |
---|---|
Technical Support | support@everythingblockchain.io |
Sales | sales@everythingblockchain.io |
Partners | partners@everythingblockchain.io |
Marketing | marketing@everythingblockchain.io |
Investors | invest@everythingblockchain.io |
Press | press@everythingblockchain.io |
License
MIT- The API is and will always remain free! The data storage is based on a fixed fee. Contact EverythingBlockchain, Inc for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- Microsoft.AspNetCore (>= 2.2.0)
- Microsoft.AspNetCore.SignalR.Client (>= 7.0.2)
- Microsoft.AspNetCore.SignalR.Protocols.MessagePack (>= 7.0.2)
- Newtonsoft.Json (>= 13.0.1)
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.117 | 121 | 6/22/2024 | |
1.0.116 | 113 | 5/29/2024 | |
1.0.115 | 162 | 5/6/2024 | |
1.0.114 | 150 | 4/16/2024 | |
1.0.113 | 177 | 4/5/2024 | |
1.0.112 | 380 | 2/21/2024 | |
1.0.111 | 468 | 2/7/2024 | |
1.0.110 | 510 | 2/4/2024 | |
1.0.109 | 542 | 1/23/2024 | |
1.0.108 | 775 | 12/20/2023 | |
1.0.107 | 808 | 12/6/2023 | |
1.0.106 | 814 | 12/5/2023 | |
1.0.105 | 806 | 11/30/2023 | |
1.0.104 | 785 | 11/30/2023 | |
1.0.103 | 785 | 11/28/2023 | |
1.0.102 | 803 | 11/28/2023 | |
1.0.101 | 770 | 11/13/2023 | |
1.0.100 | 781 | 11/13/2023 | |
1.0.99 | 831 | 11/13/2023 | |
1.0.98 | 772 | 11/10/2023 | |
1.0.97 | 778 | 11/10/2023 | |
1.0.96 | 778 | 11/9/2023 | |
1.0.95 | 771 | 11/9/2023 | |
1.0.94 | 793 | 11/9/2023 | |
1.0.93 | 835 | 10/25/2023 | |
1.0.92 | 804 | 10/23/2023 | |
1.0.91 | 867 | 10/15/2023 | |
1.0.90 | 807 | 10/11/2023 | |
1.0.89 | 788 | 10/11/2023 | |
1.0.88 | 817 | 10/10/2023 | |
1.0.87 | 842 | 9/4/2023 | |
1.0.86 | 946 | 8/15/2023 | |
1.0.85 | 850 | 7/18/2023 | |
1.0.84 | 866 | 7/6/2023 | |
1.0.83 | 868 | 7/6/2023 | |
1.0.82 | 879 | 7/1/2023 | |
1.0.81 | 873 | 6/20/2023 | |
1.0.80 | 850 | 5/12/2023 | |
1.0.79 | 846 | 5/11/2023 | |
1.0.78 | 880 | 5/4/2023 | |
1.0.77 | 1,349 | 3/19/2023 | |
1.0.76 | 965 | 3/15/2023 | |
1.0.75 | 1,000 | 3/14/2023 | |
1.0.74 | 1,013 | 3/14/2023 | |
1.0.72 | 1,008 | 3/14/2023 | |
1.0.71 | 1,020 | 3/10/2023 | |
1.0.70 | 1,002 | 3/8/2023 | |
1.0.69 | 1,019 | 3/3/2023 | |
1.0.68 | 1,012 | 3/2/2023 | |
1.0.67 | 995 | 3/2/2023 | |
1.0.66 | 1,022 | 2/28/2023 | |
1.0.65 | 1,043 | 2/21/2023 | |
1.0.64 | 1,042 | 2/7/2023 | |
1.0.63 | 1,013 | 2/7/2023 | |
1.0.62 | 1,039 | 2/6/2023 | |
1.0.61 | 1,046 | 2/3/2023 | |
1.0.60 | 1,035 | 1/30/2023 | |
1.0.59 | 1,082 | 1/29/2023 | |
1.0.58 | 1,068 | 1/27/2023 | |
1.0.57 | 1,039 | 1/27/2023 | |
1.0.56 | 1,036 | 1/27/2023 | |
1.0.55 | 1,087 | 1/27/2023 | |
1.0.54 | 1,018 | 1/26/2023 | |
1.0.53 | 1,044 | 1/26/2023 | |
1.0.52 | 1,023 | 1/26/2023 | |
1.0.51 | 1,057 | 1/26/2023 | |
1.0.50 | 1,024 | 1/26/2023 | |
1.0.49 | 1,023 | 1/26/2023 | |
1.0.48 | 1,030 | 1/26/2023 | |
1.0.47 | 1,070 | 1/25/2023 | |
1.0.46 | 1,044 | 1/25/2023 | |
1.0.45 | 1,073 | 1/25/2023 | |
1.0.44 | 1,053 | 1/25/2023 | |
1.0.43 | 1,055 | 1/24/2023 | |
1.0.42 | 1,045 | 1/24/2023 | |
1.0.41 | 1,060 | 1/24/2023 | |
1.0.40 | 1,032 | 1/24/2023 | |
1.0.39 | 1,063 | 1/24/2023 | |
1.0.38 | 1,093 | 1/24/2023 | |
1.0.37 | 1,091 | 1/23/2023 | |
1.0.36 | 1,062 | 1/22/2023 | |
1.0.35 | 1,075 | 1/22/2023 | |
1.0.34 | 1,053 | 1/20/2023 | |
1.0.33 | 1,083 | 1/20/2023 | |
1.0.32 | 1,029 | 1/19/2023 | |
1.0.31 | 1,163 | 1/19/2023 | |
1.0.30 | 1,106 | 1/19/2023 | |
1.0.29 | 1,034 | 1/19/2023 | |
1.0.28 | 1,107 | 1/17/2023 | |
1.0.27 | 1,110 | 1/17/2023 | |
1.0.26 | 1,100 | 1/11/2023 | |
1.0.25 | 1,139 | 12/9/2022 | |
1.0.24 | 1,140 | 12/8/2022 | |
1.0.23 | 1,075 | 12/8/2022 | |
1.0.22 | 1,109 | 11/23/2022 | |
1.0.21 | 1,110 | 11/23/2022 | |
1.0.20 | 1,099 | 11/21/2022 | |
1.0.18 | 1,060 | 11/21/2022 | |
1.0.17 | 1,083 | 11/21/2022 | |
1.0.16 | 1,074 | 11/18/2022 | |
1.0.15 | 1,132 | 11/18/2022 | |
1.0.14 | 1,149 | 11/18/2022 | |
1.0.13 | 1,168 | 11/18/2022 | |
1.0.9 | 2,769 | 11/18/2022 | |
1.0.8 | 2,673 | 11/17/2022 | |
1.0.7 | 2,656 | 11/17/2022 | |
1.0.6 | 2,541 | 11/17/2022 | |
1.0.5 | 2,632 | 11/17/2022 | |
1.0.4 | 2,441 | 11/17/2022 | |
1.0.3 | 2,594 | 11/17/2022 | |
1.0.2 | 2,639 | 11/17/2022 | |
1.0.1 | 2,521 | 11/17/2022 | |
1.0.0 | 2,711 | 11/17/2022 |
EBBuild Client for .NetCore 6.0 and above