예제 #1
0
 public EnclosureController(IEnclosure enclosure, IConverter converter, TemplateGenerator templateGenerator, ILogger <EnclosureController> logger)
 {
     _enclosure = enclosure;
     _converter = converter;
     _template  = templateGenerator;
     _logger    = logger;
 }
예제 #2
0
        /// <summary>
        /// Creates a new FileManifest with the deserialized manifest file information.
        /// </summary>
        /// <param name="enclosure"></param>
        public DownloadFile(IEnclosure enclosure)
        {
            sourceLocation    = enclosure.Url;
            suggestedMimeType = new MimeType(enclosure.MimeType);
            FileSize          = enclosure.Length;

            GuessLocalFileName();
        }
예제 #3
0
 public RazorPageController(IEnclosure enclosure, TemplateGenerator templateGenerator)
 {
     _enclosure = enclosure;
     _template  = templateGenerator;
 }
예제 #4
0
 public void Write(IEnclosure enclosure, int enclosureNumber)
 {
     throw new System.NotImplementedException();
 }
예제 #5
0
 public void StopLogging(IEnclosure enclosure)
 {
     throw new System.NotImplementedException();
 }
예제 #6
0
 public Project(IDatabase database, IEnclosure enclosure)
 {
     _database  = database.Get();
     _enclosure = enclosure;
 }
예제 #7
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 public bool Equals(IEnclosure other)
 {
     return(Equals(other as Enclosure));
 }
예제 #8
0
 public CsvController(IEnclosure enclosure)
 {
     _enclosure = enclosure;
 }
예제 #9
0
 public ProjectController(IProject project, IEnclosure enclosure, ILogger <ProjectController> logger)
 {
     _project   = project;
     _enclosure = enclosure;
     _logger    = logger;
 }