Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Stream
 /// </summary>
 /// <param name="name"> Friendly name given to the Stream </param>
 /// <param name="connectorName"> Unique name for Stream Connector </param>
 /// <param name="url"> URL of the remote service where the Stream is routed </param>
 /// <param name="track"> Track to be streamed to remote service </param>
 public Stream(string name            = null,
               string connectorName   = null,
               string url             = null,
               Stream.TrackEnum track = null) : base("Stream")
 {
     this.Name          = name;
     this.ConnectorName = connectorName;
     this.Url           = url;
     this.Track         = track;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Create a new <Stream/> element and append it as a child of this element.
        /// </summary>
        /// <param name="name"> Friendly name given to the Stream </param>
        /// <param name="connectorName"> Unique name for Stream Connector </param>
        /// <param name="url"> URL of the remote service where the Stream is routed </param>
        /// <param name="track"> Track to be streamed to remote service </param>
        public Start Stream(string name            = null,
                            string connectorName   = null,
                            string url             = null,
                            Stream.TrackEnum track = null)
        {
            var newChild = new Stream(name, connectorName, url, track);

            this.Append(newChild);
            return(this);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create a new <Stream/> element and append it as a child of this element.
        /// </summary>
        /// <param name="name"> Friendly name given to the Stream </param>
        /// <param name="connectorName"> Unique name for Stream Connector </param>
        /// <param name="url"> URL of the remote service where the Stream is routed </param>
        /// <param name="track"> Track to be streamed to remote service </param>
        /// <param name="statusCallback"> Status Callback URL </param>
        /// <param name="statusCallbackMethod"> Status Callback URL method </param>
        public Connect Stream(string name            = null,
                              string connectorName   = null,
                              string url             = null,
                              Stream.TrackEnum track = null,
                              string statusCallback  = null,
                              Stream.StatusCallbackMethodEnum statusCallbackMethod = null)
        {
            var newChild = new Stream(name, connectorName, url, track, statusCallback, statusCallbackMethod);

            this.Append(newChild);
            return(this);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new Stream
 /// </summary>
 /// <param name="name"> Friendly name given to the Stream </param>
 /// <param name="connectorName"> Unique name for Stream Connector </param>
 /// <param name="url"> URL of the remote service where the Stream is routed </param>
 /// <param name="track"> Track to be streamed to remote service </param>
 /// <param name="statusCallback"> Status Callback URL </param>
 /// <param name="statusCallbackMethod"> Status Callback URL method </param>
 public Stream(string name            = null,
               string connectorName   = null,
               string url             = null,
               Stream.TrackEnum track = null,
               string statusCallback  = null,
               Stream.StatusCallbackMethodEnum statusCallbackMethod = null) : base("Stream")
 {
     this.Name                 = name;
     this.ConnectorName        = connectorName;
     this.Url                  = url;
     this.Track                = track;
     this.StatusCallback       = statusCallback;
     this.StatusCallbackMethod = statusCallbackMethod;
 }