Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
/ MogileFsApi Public archive

⚠️ *UNMAINTAINED* MogileFS client in C#

License

Notifications You must be signed in to change notification settings

twingly/MogileFsApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MogileFsApi is a C# API for MogileFs (see http://danga.com/mogilefs/ and http://code.google.com/p/mogilefs/).

Author: Hugo Hallqvist <[email protected]>

License
=======
Copyright 2010 Twingly AB. MogileFsApi is provided under the three-clause
BSD License. See the included LICENSE.txt file for specifics.

Examples
========

// Create a simple client against the server mogile1
var uri = new Uri("mogile://mogile1:6001");
var client = new MogileFsClient(new Uri[] { uri });

// Store a file
var d = "testdomain";
var key = "testkey";

using (var filestream = new FileStream(@"C:\tmp\some_file.jpg", FileMode.Open)) {
	client.StoreFile(d, key, "original", filestream, 100000);
}

// Retrieve a file
byte[] arr = client.GetFileBytes(d, key, 10000);

About

⚠️ *UNMAINTAINED* MogileFS client in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages