Git Product home page Git Product logo

bunnycdn.net.storage's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bunnycdn.net.storage's Issues

License?

Hi, would you mind adding a license? A MIT license or the sort would be great. Thanks

getting Nuget error

getting this error in visual studio when i try to run the storage manager
what could be the reason ?

image

BunnyCDNStorage make properties {init;} instead of "private"

public string ApiAccessKey { get; private set; }

  • Change private to init
  • also, why is it public? Can you remove the get

public string StorageZoneName { get; private set; }

  • Change private to init
  • also, why is it public? Can you remove the get

[Proposal/Request] Unit testing & CI

As you may already know, I'm trying to get the project fully unit-tested to ensure functionality.

CI using Travis: #8

I'd gladly create a travis-ci config for continuous delivery to nuget which would only require internal setup on the travis platform and be configured using environment variables.

e2e Testing

I would also like to add e2e unit-testing, would there be a possibility the project can have access to an unbilled e2e testing zone which we could use to ensure nothing in between broke?

Running this test before releasing it through the CI.would ensure no broken interfacing occurs in the released nuget package.
Only triggering it on tags would ensure there's no overuse or perhaps abuse of this zone.

Further feedback would be appreciated.

BunnyCDNStorage:: async Task DownloadObjectAsync use FileStream.CopyToAsync and await

REASON: cleaner code and CopyToAsync performance

using (var bufferedStream = new BufferedStream(stream, 1024 * 64))
{
using (var fileStream = new FileStream(localFilePath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite, 1024 * 64))
{
bufferedStream.CopyTo(fileStream, 1024 * 64);
}
}

CHANGE TO

using var bufferedStream = new BufferedStream(stream, 1024 * 64);

using var fileStream = new FileStream(localFilePath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite, 1024 * 64);

await bufferedStream.CopyToAsync(fileStream, 1024 * 64);

Create Folder and Delete Folder

The package is very nice and clear. But it needs a little more development;

Create Folder
Folder Name Update
Delete Folder

Issues like these need to be added.

Need method for BunnyCDNStorage, _http.BaseAddress

In BunnyCDN.Net.Storage/BunnyCDNStorage.cs

In the Constructor of BunnyCDNStorage, it sets
_http.BaseAddress = new Uri("https://storage.bunnycdn.com/");
but when i use this. The messege says it is succeeded. But Actually it doesn't.
Upload file, messege 'complete', but no file on storage.

To fix this, I have to change to local uri "https://ny.storage.bunnycdn.com".

But i don't think this is what you intend to with this library.
I don't want hackky code. So please support this issue.

Fyi. I dev on Unity3D engine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.