public static TasqHandlerDetail TryGetFromType(Type type, ITasqHandlerResolver handlerResolver) { if (!TypeTasqReference.IsValidHandler(type)) { return(null); } var reference = TypeTasqReference.Resolve(type); return(new TasqHandlerDetail { Handler = (ITasqHandler)handlerResolver.GetService(reference), Reference = reference }); }
public TasqR(ITasqHandlerResolver tasqHandlerResolver) { p_TasqHandlerResolver = tasqHandlerResolver; ID = Guid.NewGuid(); }