Skip to content

Commit c246f53

Browse files
authored
Merge pull request #762 from camunda-community-hub/ck-reformat-project
Reformat project
2 parents 41bd7b5 + 41b0e48 commit c246f53

File tree

171 files changed

+7426
-7313
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+7426
-7313
lines changed

.github/workflows/pull-request-ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Pull request CI
22
on: [ pull_request ]
33
jobs:
44
unit-test:
5+
timeout-minutes: 10
56
name: Run unit tests
67
runs-on: ubuntu-latest
78
steps:
@@ -11,7 +12,7 @@ jobs:
1112
with:
1213
dotnet-version: 8.x
1314
- name: Build
14-
run: dotnet build --configuration Release
15+
run: dotnet build
1516
- name: Test
1617
run: dotnet test Client.UnitTests
1718
integration-test:

Client.Cloud.Example/.dockerignore

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
**/.dockerignore
2-
**/.env
3-
**/.git
4-
**/.gitignore
5-
**/.project
6-
**/.settings
7-
**/.toolstarget
8-
**/.vs
9-
**/.vscode
10-
**/.idea
11-
**/*.*proj.user
12-
**/*.dbmdl
13-
**/*.jfm
14-
**/azds.yaml
15-
**/bin
16-
**/charts
17-
**/docker-compose*
18-
**/Dockerfile*
19-
**/node_modules
20-
**/npm-debug.log
21-
**/obj
22-
**/secrets.dev.yaml
23-
**/values.dev.yaml
24-
LICENSE
1+
**/.dockerignore
2+
**/.env
3+
**/.git
4+
**/.gitignore
5+
**/.project
6+
**/.settings
7+
**/.toolstarget
8+
**/.vs
9+
**/.vscode
10+
**/.idea
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
2525
README.md
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
66
<OutputType>Exe</OutputType>
77
<LangVersion>latest</LangVersion>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15" />
12-
<PackageReference Include="zb-client" Version="2.7.0" />
11+
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15"/>
12+
<PackageReference Include="zb-client" Version="2.7.0"/>
1313
</ItemGroup>
1414

1515
<ItemGroup>
@@ -19,7 +19,6 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Update="StyleCop.Analyzers" Version="1.1.118" />
22+
<PackageReference Update="StyleCop.Analyzers" Version="1.1.118"/>
2323
</ItemGroup>
24-
2524
</Project>

Client.Cloud.Example/NLog.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<nlog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
44

55
<targets>
66
<target name="logconsole" xsi:type="Console"
77
layout="${longdate} | ${level:uppercase=true} | ${logger} | ${message} ${exception:format=tostring}"/>
88
</targets>
99

1010
<rules>
11-
<logger name="*" minlevel="Trace" writeTo="logconsole" />
11+
<logger name="*" minlevel="Trace" writeTo="logconsole"/>
1212
</rules>
1313
</nlog>

Client.Cloud.Example/Program.cs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,22 @@
1818
using NLog.Extensions.Logging;
1919
using Zeebe.Client.Impl.Builder;
2020

21-
namespace Client.Cloud.Example
21+
namespace Client.Cloud.Example;
22+
23+
public class Program
2224
{
23-
public class Program
25+
public static async Task Main(string[] args)
2426
{
25-
public static async Task Main(string[] args)
26-
{
27-
var zeebeClient =
28-
CamundaCloudClientBuilder.Builder()
29-
.UseClientId("ZEEBE_CLIENT_ID")
30-
.UseClientSecret("ZEEBE_CLIENT_SECRET")
31-
.UseContactPoint("ZEEBE_ADDRESS")
32-
.UseLoggerFactory(new NLogLoggerFactory()) // optional
33-
.Build();
27+
var zeebeClient =
28+
CamundaCloudClientBuilder.Builder()
29+
.UseClientId("ZEEBE_CLIENT_ID")
30+
.UseClientSecret("ZEEBE_CLIENT_SECRET")
31+
.UseContactPoint("ZEEBE_ADDRESS")
32+
.UseLoggerFactory(new NLogLoggerFactory()) // optional
33+
.Build();
3434

35-
var topology = await zeebeClient.TopologyRequest().Send();
35+
var topology = await zeebeClient.TopologyRequest().Send();
3636

37-
Console.WriteLine("Hello: " + topology);
38-
}
37+
Console.WriteLine("Hello: " + topology);
3938
}
4039
}

Client.Examples/Client.Examples.csproj

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,30 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<LangVersion>latest</LangVersion>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<None Update="Resources\**" CopyToOutputDirectory="PreserveNewest" />
10+
<None Update="Resources\**" CopyToOutputDirectory="PreserveNewest"/>
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.0" />
15-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
16-
<PackageReference Include="Newtonsoft.Json" version="13.0.3" />
17-
<PackageReference Include="NLog" Version="5.3.4" />
18-
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15" />
19-
<PackageReference Update="StyleCop.Analyzers" Version="1.1.118" />
14+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.0"/>
15+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0"/>
16+
<PackageReference Include="Newtonsoft.Json" version="13.0.3"/>
17+
<PackageReference Include="NLog" Version="5.3.4"/>
18+
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15"/>
19+
<PackageReference Update="StyleCop.Analyzers" Version="1.1.118"/>
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<ProjectReference Include="..\Client\Client.csproj" />
23+
<ProjectReference Include="..\Client\Client.csproj"/>
2424
</ItemGroup>
2525

2626
<ItemGroup>
2727
<Content Include="NLog.config">
2828
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2929
</Content>
3030
</ItemGroup>
31-
3231
</Project>

Client.Examples/CloudExample.cs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Camunda Cloud Example
2+
23
In the following you see an example of how to use the Zeebe C# client with the CamundaCloud.
34
`CamundaCloudClientBuilder.Builder().FromEnv()` will look for credentials details in the environment.
45

@@ -32,7 +33,7 @@ namespace Client.Examples
3233
public static async Task Main(string[] args)
3334
{
3435
// create zeebe client
35-
var client =
36+
var client =
3637
CamundaCloudClientBuilder.Builder()
3738
.FromEnv()
3839
.UseLoggerFactory(new NLogLoggerFactory())

Client.Examples/CloudWorkerExample.cs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Camunda Cloud Worker Example
2+
23
In the following you see an example of how to use the Zeebe C# client job worker with the CamundaCloud.
34

45
We have a separate thread which outputs how many jobs with worker has completed in a second.
@@ -36,7 +37,7 @@ namespace Client.Examples
3637
public static async Task Main(string[] args)
3738
{
3839
// create zeebe client
39-
var client =
40+
var client =
4041
CamundaCloudClientBuilder.Builder()
4142
.FromEnv()
4243
.UseLoggerFactory(new NLogLoggerFactory())

Client.Examples/DependencyInjectionExample.cs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Dependency Injection Example
2+
23
In the following you see an example of how to use the Zeebe C# client with dependency injection.
34

45
```csharp

Client.Examples/NLog.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<nlog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
44

55
<targets>
66
<target name="logconsole" xsi:type="Console"
77
layout="${longdate} | ${level:uppercase=true} | ${logger} | ${message} ${exception:format=tostring}"/>
88
</targets>
99

1010
<rules>
11-
<logger name="*" minlevel="Trace" writeTo="logconsole" />
11+
<logger name="*" minlevel="Trace" writeTo="logconsole"/>
1212
</rules>
1313
</nlog>

0 commit comments

Comments
 (0)