/// <summary> /// Initializes a new instance of the <see cref="OscInboundHttpStream" /> class. /// </summary> /// <param name="source">The source.</param> /// <param name="mimetype">The mimetype.</param> /// <param name="pollingInterval">The polling interval.</param> /// <param name="scheduler">The scheduler.</param> /// <exception cref="System.ArgumentNullException">source</exception> public OscInboundHttpStream(string source, OscPaylaodMimeType mimetype, TimeSpan pollingInterval, IScheduler scheduler = null) : base(scheduler) { if (string.IsNullOrWhiteSpace(source)) { throw new ArgumentNullException("source"); } m_source = source; m_pollingInterval = pollingInterval; Mimetype = mimetype ?? OscPaylaodMimeType.Json; }
/// <summary> /// Initializes a new instance of the <see cref="OscOutboundHttpStream" /> class. /// </summary> /// <param name="destination">The destination.</param> /// <param name="responseStream">The response stream.</param> /// <param name="mimetype">The mimetype.</param> /// <param name="scheduler">The scheduler.</param> /// <exception cref="System.ArgumentNullException">destination</exception> public OscOutboundHttpStream (string destination, IObserver <OscPacket> responseStream, OscPaylaodMimeType mimetype, IScheduler scheduler = null) : base(scheduler) { if (string.IsNullOrWhiteSpace(destination)) { throw new ArgumentNullException(nameof(destination)); } m_destination = destination; m_responseStream = responseStream; Mimetype = mimetype ?? OscPaylaodMimeType.Json; }