Пример #1
0
        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
            });
        }
Пример #2
0
 public TasqR(ITasqHandlerResolver tasqHandlerResolver)
 {
     p_TasqHandlerResolver = tasqHandlerResolver;
     ID = Guid.NewGuid();
 }