Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baruchiro/networkconnection

Represents a network connection along with authentication to a network share
https://github.com/baruchiro/networkconnection

networkconnection nuget nuget-package

Last synced: about 1 month ago
JSON representation

Represents a network connection along with authentication to a network share

Awesome Lists containing this project

README

        

# NetworkConnection

Represents a network connection along with authentication to a network share.

![Nuget](https://badgen.net/nuget/v/NetworkConnection)
![Publish](https://github.com/baruchiro/NetworkConnection/workflows/Publish/badge.svg?branch=master&event=push)
[![Nuget](https://img.shields.io/nuget/dt/NetworkConnection)](https://www.nuget.org/packages/NetworkConnection/)

Based on [Daniel Hilgarth](https://stackoverflow.com/users/572644/daniel-hilgarth)'s [answer](https://stackoverflow.com/a/5433640/839513) from Stack Overflow.

## Usage

```cs
using(new NetworkConnection(_directoryPath, new NetworkCredential(_userName, _password)))
{
File.Copy(localPath, _directoryPath);
}
```