示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UntisExp.Fetcher"/> class which is pre-equipped for background operation. Will surpress all rows which do not contain a timetable element, e.g. the date row. Useful for background services.
 /// </summary>
 /// <param name="mode">The mode of operation: MODE 0: Nur heute, MODE 1: Nur Morgen, MODE 2: Beide, MODE 5: Alles</param>
 /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param>
 // ReSharper disable once UnusedMember.Global
 public Fetcher(int mode, INetworkAccessor networkAccessor = null)
 {
     _mode = mode;
     _silent = true;
     if (networkAccessor == null) networkAccessor = new Networking();
     _networkAccessor = networkAccessor;
 }
示例#2
0
文件: Press.cs 项目: reknih/UntisExp
        /// <summary>
        /// Creates a new Press object
        /// </summary>
        /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param>
	    public Press(INetworkAccessor networkAccessor = null)
	    {
	        if (networkAccessor == null) networkAccessor = new Networking();
	        _networkAccessor = networkAccessor;
	    }    
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UntisExp.Fetcher"/> class.
 /// </summary>
 /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param>
 public Fetcher(INetworkAccessor networkAccessor = null)
 {
     if (networkAccessor == null) networkAccessor = new Networking();
     _networkAccessor = networkAccessor;
 }