Skip to content

Commit

Permalink
everything new
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-dumitru committed Jun 21, 2024
1 parent 446c3c0 commit c0d14bc
Show file tree
Hide file tree
Showing 501 changed files with 38,120 additions and 21,413 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local

dotnet_naming_style.camel_case_style.capitalization = camel_case
csharp_style_pattern_local_over_anonymous_function=true:silent

[*.xml]
indent_size = 2
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ scripts/
artifacts/
.dotnet
TestResults/
*.diagsession
*.suo
*.user
bin
Expand Down Expand Up @@ -32,3 +33,6 @@ project.lock.json
# Read the Docs
docs/_build
/src/LastMajorVersionBinary

# Mac Finder
.DS_Store
15 changes: 0 additions & 15 deletions CI/azp-dotnet-dist.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions CI/azp-dotnet.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions CI/azp-nodejs.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions CI/azp-start.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions Directory.Build.props

This file was deleted.

14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Build Status](https://uipath.visualstudio.com/CoreIpc/_apis/build/status/CI?branchName=master)](https://uipath.visualstudio.com/CoreIpc/_build/latest?definitionId=637&branchName=master)
[![MyGet (dev)](https://img.shields.io/badge/CoreIpc-MyGet-brightgreen)](https://www.myget.org/feed/uipath-dev/package/nuget/UiPath.CoreIpc)
[![MyGet (dev)](https://img.shields.io/badge/CoreIpc-Preview-brightgreen)](https://uipath.visualstudio.com/Public.Feeds/_packaging?_a=package&feed=UiPath-Internal&view=versions&package=UiPath.CoreIpc&protocolType=NuGet)
# CoreIpc
WCF-like service model API for communication over named pipes. .NET Standard (.NET Core) and [Node.js](src/Clients/nodejs) clients.
WCF-like service model API for communication over named pipes, TCP and web sockets. .NET and [Node.js and Web](src/Clients/js) clients.
- async
- json serialization
- DI integration
Expand All @@ -14,7 +14,7 @@ WCF-like service model API for communication over named pipes. .NET Standard (.N
- configurable task scheduler
- client authentication and impersonation
- access to the underlying transport with `Stream` parameters
- SSPI encryption and signing
- SSL

Check [the tests](https://github.com/UiPath/CoreIpc/blob/master/src/UiPath.CoreIpc.Tests/) and the sample.
```C#
Expand All @@ -31,3 +31,11 @@ var computingClient =
// call a remote method
var result = await computingClient.AddFloat(1, 4, cancellationToken);
```
# UiPath.Rpc
[![Build Status](https://uipath.visualstudio.com/CoreIpc/_apis/build/status/CI?branchName=master)](https://uipath.visualstudio.com/CoreIpc/_build/latest?definitionId=3428&branchName=master)
[![MyGet (dev)](https://img.shields.io/badge/UiPath.Rpc-Preview-brightgreen)](https://uipath.visualstudio.com/Public.Feeds/_packaging?_a=package&feed=UiPath-Internal&view=versions&package=UiPath.Rpc&protocolType=NuGet)

https://github.com/UiPath/coreipc/tree/master/UiPath.Rpc
A more efficient version based on MessagePack.
# Debug using Source Link
[Preview builds setup](https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/symbols?view=azure-devops#set-up-visual-studio).
32 changes: 32 additions & 0 deletions UiPath.Rpc/CI/azp-dotnet-dist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
steps:
- task: CopyFiles@2
displayName: '$(Label_DotNet) Copy nupkg to $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: 'UiPath.Rpc\UiPath.Rpc\bin\$(DotNet_BuildConfiguration)\'
Contents: '*.*nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true

- task: PublishBuildArtifacts@1
displayName: '$(Label_DotNet) Publish the $(DotNet_ArtifactName) to the pipeline instance'
inputs:
ArtifactName: '$(DotNet_ArtifactName)'
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactType: 'Container'

- task: DotNetCoreCLI@2
displayName: 'dotnet push to UiPath-Internal'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
publishVstsFeed: 'Public.Feeds/UiPath-Internal'

- task: PublishSymbols@2
displayName: 'Publish Symbols to UiPath Azure Artifacts Symbol Server'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
symbolsFolder: $(Build.SourcesDirectory)
searchPattern: '**/UiPath.Rpc/bin/**/UiPath.Rpc.pdb'
symbolServerType: teamServices
indexSources: false
9 changes: 9 additions & 0 deletions UiPath.Rpc/CI/azp-dotnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- task: DotNetCoreCLI@2
displayName: '$(Label_DotNet) Run unit tests'
inputs:
command: 'test'
projects: '$(DotNet_SessionSolution)'
publishTestResults: true
testRunTitle: '.NET tests'
arguments: ' --configuration $(DotNet_BuildConfiguration) --logger "console;verbosity=detailed" -p:Version="$(FullVersion)" -p:DefineConstantsEx="CI"'
33 changes: 33 additions & 0 deletions UiPath.Rpc/CI/azp-initialization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
steps:

# Read $(Version) from the UiPath.Rpc.csproj file
- powershell: |
$xml = [Xml] ( Get-Content $env:DotNet_MainProjectPath )
$version = [String] $xml.Project.PropertyGroup.Version
$version = $version.Trim()
Write-Host "##vso[task.setvariable variable=Version;]$version"
displayName: '$(Label_Initialization) Read $[Version] from the csproj'
env:
DotNet_MainProjectPath: $(DotNet_MainProjectPath)
# If $(PublishRelease) != "true" then compute $(FullVersion) as $(Version)-$(Build.BuildNumber)
- task: VariableTransformTask@1
displayName: '$(Label_Initialization) Compute $[FullVersion] when $[PublishRelease] is not true'
inputs:
value: '$(Version)-$(Build.BuildNumber)'
variableName: 'FullVersion'
IsSecret: false
transformAction: 'none'
condition: ne(variables['PublishRelease'], 'true')

# If $(PublishRelease) == "true" then compute $(FullVersion) as $(Version)
- task: VariableTransformTask@1
displayName: '$(Label_Initialization) Compute $[FullVersion] when $[PublishRelease] is "true"'
inputs:
value: '$(Version)'
variableName: 'FullVersion'
IsSecret: false
transformAction: 'none'
condition: eq(variables['PublishRelease'], 'true')
30 changes: 30 additions & 0 deletions UiPath.Rpc/CI/azp-start.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: $(Date:yyyyMMdd)$(Rev:-rr)

variables:
Label_Initialization: 'Initialization:'
Label_DotNet: '.NET:'
Label_NodeJS: 'node.js:'

DotNet_BuildConfiguration: 'Release'
DotNet_SessionSolution: 'UiPath.Rpc/UiPath.Rpc.sln'
DotNet_MainProjectName: 'UiPath.Rpc'
DotNet_MainProjectPath: './UiPath.Rpc/UiPath.Rpc/UiPath.Rpc.csproj'
DotNet_ArtifactName: 'NuGet package'

NodeJS_DotNet_BuildConfiguration: 'Debug'
NodeJS_ProjectPath: './src/Clients/nodejs'
NodeJS_ArchivePath: './src/Clients/nodejs.zip'
NodeJS_ArtifactName: 'NPM package'
NodeJS_NetCoreAppTargetDir_RelativePath: 'dotnet/UiPath.Rpc.NodeInterop/bin/Debug/net6.0'
NodeJS_DotNetNodeInteropProject : './src/Clients/nodejs/dotnet/UiPath.Rpc.NodeInterop/UiPath.Rpc.NodeInterop.csproj'
NodeJS_DotNetNodeInteropSolution: './src/Clients/nodejs/dotnet/UiPath.Rpc.NodeInterop.sln'
jobs:

- job:
displayName: '.NET on Windows'
pool:
vmImage: 'windows-latest'
steps:
- template: azp-initialization.yaml
- template: azp-dotnet.yaml
- template: azp-dotnet-dist.yaml
File renamed without changes.
8 changes: 8 additions & 0 deletions UiPath.Rpc/RpcSample.ConsoleClient/App1.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<switches>
<add name="Ipc.DebuggerProxy" value="Verbose" />
</switches>
</system.diagnostics>
</configuration>
Loading

0 comments on commit c0d14bc

Please sign in to comment.