Ejemplo n.º 1
0
 public Hub(Credentials credentials, string hubName)
 {
     if (hubName == null)
     {
         throw new System.ArgumentException(MessageConfig.NULL_HUBNAME_EXCEPTION_MSG);
     }
     if (credentials == null)
     {
         throw new System.ArgumentException(MessageConfig.NULL_CREDENTIALS_EXCEPTION_MSG);
     }
     mCredentials = credentials;
     mHubName     = hubName;
 }
Ejemplo n.º 2
0
 public Hub(Credentials credentials, string hubName)
 {
     if (hubName == null)
     {
         throw new System.ArgumentException(MessageConfig.NULL_HUBNAME_EXCEPTION_MSG);
     }
     if (credentials == null)
     {
         throw new System.ArgumentException(MessageConfig.NULL_CREDENTIALS_EXCEPTION_MSG);
     }
     mCredentials = credentials;
     mHubName = hubName;
 }
Ejemplo n.º 3
0
            public StreamList(JObject jsonObj, Credentials auth)
            {
                this.marker = jsonObj["marker"].ToString();
                Console.WriteLine("this.marker-----" + this.marker);

                try
                {
                    JToken record = jsonObj["items"];
                    itemList = new List <Stream>();
                    foreach (JObject jp in record)
                    {
                        itemList.Add(new Stream(JObject.Parse(jp.ToString()), auth));
                    }
                }
                catch (System.InvalidCastException e)
                {
                    Console.WriteLine(e.ToString());
                    Console.Write(e.StackTrace);
                }
            }
Ejemplo n.º 4
0
 public Stream(JObject jsonObject, Credentials credentials)
     : this(jsonObject)
 {
     mCredentials = credentials;
 }
Ejemplo n.º 5
0
 public Stream(JObject jsonObject, Credentials credentials)
     : this(jsonObject)
 {
     mCredentials = credentials;
 }
Ejemplo n.º 6
0
            public StreamList(JObject jsonObj, Credentials auth)
            {
                this.marker = jsonObj["marker"].ToString();
                Console.WriteLine("this.marker-----" + this.marker);

                try
                {
                    JToken record = jsonObj["items"];
                    itemList = new List<Stream>();
                    foreach (JObject jp in record)
                    {
                        itemList.Add(new Stream(JObject.Parse(jp.ToString()), auth));
                    }

                }
                catch (System.InvalidCastException e)
                {
                    Console.WriteLine(e.ToString());
                    Console.Write(e.StackTrace);
                }
            }
Ejemplo n.º 7
0
 public Hub(string accessKey, string secretKey, string hubName)
 {
     mCredentials = new Credentials(accessKey, secretKey);
     mHubName     = hubName;
 }