Akamai.NetStorage.NetStorage.getNetStorageUri C# (CSharp) Method

getNetStorageUri() private method

private getNetStorageUri ( string path ) : Uri
path string
return System.Uri
        internal Uri getNetStorageUri(string path)
        {
            return new UriBuilder() { Scheme = this.UseSSL ? "HTTPS" : "HTTP", Host = this.HostName, Path = path }.Uri;
        }

Usage Example

示例#1
0
        public void TestNetstorageGetUri()
        {
            var ns = new NetStorage("www.example.com", "user1", "secret1", false);

            Assert.AreEqual(ns.getNetStorageUri("/foobar"), "http://www.example.com/foobar");

            ns = new NetStorage("www.example.com", "user1", "secret1", true);
            Assert.AreEqual(ns.getNetStorageUri("/foobar"), "https://www.example.com/foobar");
        }
All Usage Examples Of Akamai.NetStorage.NetStorage::getNetStorageUri