PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/src/IpCamEmu.Core/MJpeg/MJpegServerSettings.cs

#
C# | 36 lines | 29 code | 7 blank | 0 comment | 0 complexity | 7a66eb4df7491c8978bc9fb19c39802b MD5 | raw file
  1. using System;
  2. using HDE.IpCamEmu.Core.Source;
  3. using HDE.Platform.Logging;
  4. namespace HDE.IpCamEmu.Core.MJpeg
  5. {
  6. [Serializable]
  7. public class MJpegServerSettings : ServerSettingsBase
  8. {
  9. #region Properties
  10. public string Uri { get; private set; }
  11. public uint FrameDelay { get; private set; }
  12. #endregion
  13. #region Constructors
  14. public MJpegServerSettings(
  15. string uri,
  16. uint frameDelay,
  17. SourceSettings sourceSettings)
  18. {
  19. Uri = uri;
  20. FrameDelay = frameDelay;
  21. SourceSettings = sourceSettings;
  22. }
  23. #endregion
  24. public override IDisposable CreateServer(ILog log)
  25. {
  26. return new MJpegServer(log, this);
  27. }
  28. }
  29. }