public static ResourceIdentifier <T> ToKeyResourceIdentifier <T>(this IKeyReferencable <T> obj) where T : Resource <T> { return(new ResourceIdentifier <T>() { Key = obj.Key }); }
public static InStoreCommand <PagedQueryResult <ShippingMethod> > InStore(this GetShippingMethodsForCartCommand command, IKeyReferencable <Store> storeRef) { return(new InStoreCommand <PagedQueryResult <ShippingMethod> >(storeRef.Key, command)); }
public static InStoreCommand <Token <T> > InStore <T>(this ICommand <Token <T> > command, IKeyReferencable <Store> storeRef) where T : IInStoreUsable { return(new InStoreCommand <Token <T> >(storeRef.Key, command)); }
public InStoreCommand(IKeyReferencable <Store> storeRef, ICommand <T> innerCommand) { this.StoreKey = storeRef.Key; this.InnerCommand = innerCommand; }
public static GetByKeyCommand <T> GetByKey <T>(this IKeyReferencable <T> resource) where T : Resource <T> { return(new GetByKeyCommand <T>(resource.Key)); }
public static CheckByKeyCommand <T> CheckByKey <T>(this IKeyReferencable <T> resource) where T : Resource <T>, ICheckable <T> { return(new CheckByKeyCommand <T>(resource.Key)); }