Example #1
0
        public IBlobstoreClient Create()
        {
            BlobstoreClient rv;

            var options = new BlobstoreOptions(config.BlobstoreEndpoint, config.BlobstoreUser, config.BlobstorePassword);

            switch (config.BlobstorePlugin)
            {
            case "simple":
                rv = new SimpleBlobstoreClient(options);
                break;

            default:
                string msg = String.Format(Resources.BlobstoreClientFactory_UnknownPlugin_Fmt, config.BlobstorePlugin);
                @log.Error(msg);
                throw new BlobstoreException(msg);
            }

            return(rv);
        }
Example #2
0
 public void Can_Upload_File()
 {
     var options = new BlobstoreOptions(new Uri("http://172.21.10.181:25250"), "agent", "agent");
     var client = new SimpleBlobstoreClient(options);
     string response = client.Create(@"C:\proj\tmp\env.iso");
 }