-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split WithEndpoint/WithIdEndpoint extensions * Add parameters to WithIdEndpoint * Add parameters to GetIdEndpoint * Rename project * Update namespaces * Enable Complex Requests
- Loading branch information
1 parent
e955dea
commit c6794c3
Showing
41 changed files
with
279 additions
and
150 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release | ||
|
||
on: | ||
repository_dispatch: | ||
push: | ||
tags: | ||
- "Flex.Net-v[0-9]+.[0-9]+.[0-9]+*" | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY}} | ||
|
||
jobs: | ||
|
||
Release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Verify commit | ||
run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
git branch --remote --contains | grep origin/main | ||
- name: Set version | ||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/Flex.Net-v/}" >> $GITHUB_ENV | ||
|
||
- name: Build | ||
run: | | ||
dotnet build Flex.Net.sln --configuration Release /p:Version=${VERSION} | ||
dotnet pack Flex.Net.sln --configuration Release /p:Version=${VERSION} --no-build --output . | ||
- name: Push | ||
run: | | ||
dotnet nuget push Flex.Net.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} | ||
dotnet nuget push Flex.Net.REST.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...tor.REST/Extensions/AddEntityExtension.cs → ...Net.REST/Extensions/AddEntityExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmunicatorRestServiceBuilderExtensions.cs → ...mmunicatorRestServiceBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...tor.REST/Extensions/UsingRestExtension.cs → ...Net.REST/Extensions/UsingRestExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Flex; | ||
|
||
public static class WithEndpointExtension | ||
{ | ||
public static ICommunicatorRestEntityBuilder<TEntity> WithEndpoint<TEntity>(this ICommunicatorRestEntityBuilder<TEntity> builder, string endpoint) | ||
where TEntity : class | ||
{ | ||
builder.EntityOptions.Endpoint = endpoint; | ||
|
||
return builder; | ||
} | ||
|
||
public static ICommunicatorRestEntityBuilder<TEntity, TKey> WithEndpoint<TEntity, TKey>(this ICommunicatorRestEntityBuilder<TEntity, TKey> builder, string endpoint) | ||
where TEntity : class | ||
{ | ||
builder.EntityOptions.Endpoint = endpoint; | ||
|
||
return builder; | ||
} | ||
} |
32 changes: 16 additions & 16 deletions
32
...ommunicatorRestEntityBuilderExtensions.cs → ...EST/Extensions/WithIdEndpointExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...erfaces/ICommunicatorRestEntityBuilder.cs → ...erfaces/ICommunicatorRestEntityBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rfaces/ICommunicatorRestServiceBuilder.cs → ...rfaces/ICommunicatorRestServiceBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...T/Models/CommunicatorRestEntityBuilder.cs → ...T/Models/CommunicatorRestEntityBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.