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