public void InspectBasket(IContextualBasket basket) { var pc = basket.PickBasketItem <IProcessingContext>(); ProcessingContext = pc; LoaderContext = basket.PickBasketItem <NodeExecutionContext.LoaderPluginContext>(); }
public void InspectBasket(IContextualBasket basket) { var pc = basket.PickBasketItem <IProcessingContext>(); ProcessingContext = pc; }
public static T PickBasketItem<T>(this IContextualBasket basket) where T: class { if (basket == null) return default(T); return basket.PickBasketItem(typeof(T)) as T; }