public static DispatcherConfig SetServiceProvider( this DispatcherConfig config, IServiceProvider serviceProvider) { config.ServiceProvider = serviceProvider; return(config); }
public static DispatcherConfig AddInterceptor( this DispatcherConfig config, Type interceptorType) { config.Interceptors.Add(interceptorType); return(config); }
public static Dispatcher Create(DispatcherConfig config) { return(new Dispatcher( new DispatcherHandlersController(config.TypesToRegister, config.HandlersTypesResolver), config.ServiceProvider, config.Interceptors, config.ThrowIfMultipleSendingHandlersFound)); }
public DispatcherConfigurationException(string message, DispatcherConfig configDump) : base(message) { ConfigDump = configDump; }
public static DispatcherConfig RegisterHandlers(this DispatcherConfig config, Assembly assembly) { config.TypesToRegister.AddRange(assembly.GetExportedTypes()); return(config); }
public static DispatcherConfig RegisterHandlers(this DispatcherConfig config, IEnumerable <Type> types) { config.TypesToRegister.AddRange(types); return(config); }
public static DispatcherConfig AddInterceptor <TInterceptor>(this DispatcherConfig config) { config.Interceptors.Add(typeof(TInterceptor)); return(config); }