Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,50 @@ root = true
[*]
charset = utf-8
indent_style = tab
insert_final_newline = true

[*.{cs,js}]
[*.{cs,cshtml,js}]
trim_trailing_whitespace = true
insert_final_newline = true

[*.csproj]
indent_style = space
dotnet_sort_system_directives_first = true : warning
dotnet_style_predefined_type_for_locals_parameters_members = true : warning
dotnet_style_object_initializer = true : warning
dotnet_style_collection_initializer = true : warning
dotnet_style_explicit_tuple_names = true : error
dotnet_style_coalesce_expression = true : warning
dotnet_style_null_propagation = true : warning

# Prefer "var" everywhere
csharp_style_var_for_built_in_types = false : suggestion
csharp_style_var_when_type_is_apparent = true : suggestion
csharp_style_var_elsewhere = false : none

# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false : none
csharp_style_expression_bodied_constructors = false : none
csharp_style_expression_bodied_operators = false : none

# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true : none
csharp_style_expression_bodied_indexers = true : none
csharp_style_expression_bodied_accessors = true : none

# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
csharp_style_inlined_variable_declaration = true : suggestion
csharp_style_throw_expression = true : suggestion
csharp_style_conditional_delegate_call = true : suggestion

# Newline settings
csharp_new_line_before_open_brace = types, methods, properties, indexers, events, event_accessors, anonymous_types, object_collections, array_initializers, local_functions
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true

[*.{props,targets,config,nuspec,csproj}]
indent_style = tab
indent_size = 2
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*.edmx text
*.resx text

*.ncrunchproject text
*.ncrunchsolution text

# Custom for Visual Studio
*.sln text eol=crlf merge=union
*.csproj text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_nuget_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.x'
dotnet-version: '10.x'

- name: Check for Tag on Current Commit
run: |
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ _TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
*.v3.ncrunchsolution.user

# MightyMoose
*.mm.*
AutoTest.Net/
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ For full API documentation, please visit [evidos.github.io](https://evidos.githu
### Example code
The following code is an example of how to create and start a sign transaction with two documents.
```c#
var settings = new SignHostApiClientSettings(
var settings = new SignhostApiClientSettings(
"AppName appkey",
"apikey or usertoken"));
"apikey or usertoken");

var client = new SignHostApiClient(settings);
var client = new SignhostApiClient(settings);

var transaction = await client.CreateTransactionAsync(new Transaction {
Signers = new List<Signer> {
new Signer {
var transaction = await client.CreateTransactionAsync(new CreateTransactionRequest {
Signers = new List<CreateSignerRequest> {
new CreateSignerRequest {
Email = "john.doe@example.com",
SignRequestMessage = "Could you please sign this document?",
SendSignRequest = true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Build">
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<CodeAnalysisRuleSet>../signhost.ruleset</CodeAnalysisRuleSet>
Expand All @@ -12,7 +12,6 @@
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="FluentAssertions" Version="7.2.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
Expand Down
Loading