示例#1
0
 public static IFtpCommandHandlerExtensionInformation GetInformation(
     this Type commandHandlerType,
     IFtpCommandHandlerInformation extensionOf,
     FtpCommandHandlerExtensionAttribute attribute)
 {
     return(new CommandHandlerExtensionInformation(extensionOf, commandHandlerType, attribute));
 }
示例#2
0
 public CommandHandlerExtensionInformation(
     IFtpCommandHandlerInformation extensionOf,
     Type type,
     FtpCommandHandlerExtensionAttribute attribute)
 {
     Name            = attribute.Name;
     IsLoginRequired = attribute.IsLoginRequired ?? extensionOf.IsLoginRequired;
     IsAbortable     = extensionOf.IsAbortable;
     ExtensionOf     = extensionOf;
     Type            = type;
 }