frends-community - Frends.Community.PostFile 1.0.1

Package Description

PM> Install-Package Frends.Community.PostFile -Version 1.0.1 -Source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard

> nuget.exe install Frends.Community.PostFile -Version 1.0.1 -Source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard

> dotnet add package Frends.Community.PostFile --version 1.0.1 --source https://www.myget.org/F/frends-community/api/v3/index.json

Copy to clipboard
<PackageReference Include="Frends.Community.PostFile" Version="1.0.1" />
Copy to clipboard
source https://www.myget.org/F/frends-community/api/v3/index.json

nuget Frends.Community.PostFile  ~> 1.0.1
Copy to clipboard

> choco install Frends.Community.PostFile --version 1.0.1 --source https://www.myget.org/F/frends-community/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "frends-community" -SourceLocation "https://www.myget.org/F/frends-community/api/v2"
Install-Module -Name "Frends.Community.PostFile" -RequiredVersion "1.0.1" -Repository "frends-community" 
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/frends-community/symbols/


Frends.Community.PostFile

frends Community Task to send file using StreamContent

Actions Status MyGet License: MIT

Installing

You can install the Task via frends UI Task View or you can find the NuGet package from the following NuGet feed https://www.myget.org/F/frends-community/api/v3/index.json and in Gallery view in MyGet https://www.myget.org/feed/frends-community/package/nuget/Frends.Community.PostFile

Tasks

PostFile

The Frends.Community.PostFile task is meant for sending files using HTTP.

Input

Property Type Description Example
Method Enum(Post, Put) Http method of request. Post
Url string The URL with protocol and path to call. https://foo.example.org/path/to?Id=14
FileLocation string Path to file C:\TestFile.txt
Headers Array{Name: string, Value: string} List of HTTP headers to be added to the request. Name = Content-Type, Value = text/plain

Options

Property Type Description
Authentication Enum(None, Basic, Windows,WindowsIntegratedSecurity, OAuth, ClientCertificate ) Different options for authentication for the HTTP request.
Connection Timeout Seconds int Timeout in seconds to be used for the connection and operation. Default is 30 seconds.
Follow Redirects bool If FollowRedirects is set to false, all responses with an HTTP status code from 300 to 399 is returned to the application. Default is true.
Allow Invalid Certificate bool Do not throw an exception on certificate error. Setting this to true is discouraged in production.
Throw Exception On ErrorResponse bool Throw a WebException if return code of request is not successful.
AllowInvalidResponseContentTypeCharSet bool Some Api's return faulty content-type charset header. If set to true this overrides the returned charset.
Username string This field is available for Basic- and Windows Authentication. If Windows Authentication is selected Username needs to be of format domain\username. Basic authentication will add a base64 encoded Authorization header consisting of Username and password fields.
Password string This field is available for Basic- and Windows Authentication.
Token string Token to be used in an OAuth request. The token will be added as a Authentication header. Authorization Bearer '{Token}'
CertificateThumbprint string This field is used with Client Certificate Authentication. The certificate needs to be found in Cert\CurrentUser\My store on the agent running the process

Returns

Property Type Description
Body String Response body
Headers Dictionary<string,string> Response headers
StatusCode int Response status code

Usage: To fetch result use syntax:

#result.Replication

Building

Clone a copy of the repository

git clone https://github.com/CommunityHiQ/Frends.Community.PostFile.git

Rebuild the project

dotnet build

Run tests

dotnet test

Create a NuGet package

dotnet pack --configuration Release

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

  1. Fork the repository on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

Change Log

Version Changes
1.0.1 Converted to support .Net Framework 4.7.1 and .Net Standard
1.0.0 Added checks for null content to avoid null reference exceptions
0.0.6 Initial version
  • .NETFramework 4.7.1
    • Microsoft.CSharp (>= 4.7.0)
    • System.ComponentModel.Annotations (>= 4.7.0)
    • System.Net.Http (>= 4.3.4)
  • .NETStandard 2.0
    • Microsoft.CSharp (>= 4.7.0)
    • System.ComponentModel.Annotations (>= 4.7.0)
    • System.Net.Http (>= 4.3.4)
  • .NETFramework 4.7.1: 4.7.1.0
  • .NETStandard 2.0: 2.0.0.0

                        
Assembly Assembly hash Match
/lib/net471/frends.community.postfile.dll 1447142003994620b08d9eb1938d7c01f
/lib/netstandard2.0/frends.community.postfile.dll 7bc6375d58634d68b6388a8c99c34484FFFFFFFF
/lib/net471/frends.community.postfile.dll 1447142003994620b08d9eb1938d7c0f1

Owners

FRENDS Community Feed User

Authors

HiQ Finland

Project URL

https://github.com/CommunityHiQ/Frends.Community.PostFile

License

Unknown

Tags

Frends

Info

119 total downloads
53 downloads for version 1.0.1
Download (20.25 KB)
Download legacy symbols (35.4 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.1 20.25 KB Wed, 01 Dec 2021 11:03:56 GMT 53
1.0.0 11.06 KB Wed, 06 Nov 2019 11:31:52 GMT 41
0.0.6 11.07 KB Wed, 06 Nov 2019 10:16:38 GMT 25