C# Class R.Scheduler.Ftp.FtpLibraryInterceptor

Everytime a default instance of IFtpLibrary is created by StructureMap, replace it with an implementation configured during the scheduler startup.
Inheritance: TypeInterceptor
Exibir arquivo Open project: R-Suite/R.Scheduler

Public Methods

Method Description
FtpLibraryInterceptor ( IConfiguration config ) : System
MatchesType ( Type type ) : bool
Process ( object target, IContext context ) : object

Private Methods

Method Description
IsFtpLib ( Type t ) : bool

Method Details

FtpLibraryInterceptor() public method

public FtpLibraryInterceptor ( IConfiguration config ) : System
config IConfiguration
return System

MatchesType() public method

public MatchesType ( Type type ) : bool
type System.Type
return bool

Process() public method

public Process ( object target, IContext context ) : object
target object
context IContext
return object