예제 #1
0
 public static LocalFileHandler WithFileProvider(this LocalFileHandler handler, IFileProvider provider)
 {
     handler.AddProvider(provider);
     return(handler);
 }
예제 #2
0
 public static LocalFileHandler WithFileProvider <T>(this LocalFileHandler handler) where T : IFileProvider
 {
     return(handler.WithFileProvider(Activator.CreateInstance <T>()));
 }
예제 #3
0
 public static LocalFileHandler WithAttachmentLogic(this LocalFileHandler handler, IAttachmentLogic logic)
 {
     handler.AttachmentLogic = logic;
     return(handler);
 }
예제 #4
0
 public static LocalFileHandler WithAttachmentLogic <T>(this LocalFileHandler handler) where T : IAttachmentLogic
 {
     return(handler.WithAttachmentLogic(Activator.CreateInstance <T>()));
 }
예제 #5
0
 public static LocalFileHandler WithMimeService(this LocalFileHandler handler, IMimeService service)
 {
     handler.MimeService = service;
     return(handler);
 }
예제 #6
0
 public static LocalFileHandler WithMimeService <T>(this LocalFileHandler handler) where T : IMimeService
 {
     return(handler.WithMimeService(Activator.CreateInstance <T>()));
 }