Class DefaultOrderSearchService
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Default implementation of IOrderSearchService.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class DefaultOrderSearchService : IOrderSearchService
Constructors
DefaultOrderSearchService(ICartSearchService)
Initialize new instance of DefaultOrderSearchService.
Declaration
public DefaultOrderSearchService(ICartSearchService cartSearch)
Parameters
| Type | Name | Description |
|---|---|---|
| ICartSearchService | cartSearch | The cart search service. |
DefaultOrderSearchService(ICartSearchService, IFeatureSwitch)
Initialize new instance of DefaultOrderSearchService.
Declaration
public DefaultOrderSearchService(ICartSearchService cartSearch, IFeatureSwitch featureSwitch)
Parameters
| Type | Name | Description |
|---|---|---|
| ICartSearchService | cartSearch | The cart search service. |
| IFeatureSwitch | featureSwitch | The feature switch. |
Methods
Find<TOrderGroup>(OrderSearchFilter)
Finds orders with a specific OrderSearchFilter for a specific TOrderGroup.
Declaration
public virtual OrderSearchResults<TOrderGroup> Find<TOrderGroup>(OrderSearchFilter filter)
where TOrderGroup : class, IOrderGroup
Parameters
| Type | Name | Description |
|---|---|---|
| OrderSearchFilter | filter | The search filter. |
Returns
| Type | Description |
|---|---|
| OrderSearchResults<TOrderGroup> | A collection of order of |
Type Parameters
| Name | Description |
|---|---|
| TOrderGroup | The given order type for filter. |
GetExcludedCartNames()
Gets the cart names that are excluded by setting.
Declaration
public static IEnumerable<string> GetExcludedCartNames()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
Search<TOrderGroup>(OrderSearchField, String, Int32, Int32)
Finds orders with search value for a specific TOrderGroup.
Declaration
public virtual OrderSearchResults<TOrderGroup> Search<TOrderGroup>(OrderSearchField searchField, string searchValue, int startIndex, int recordsToRetrieve)
where TOrderGroup : class, IOrderGroup
Parameters
| Type | Name | Description |
|---|---|---|
| OrderSearchField | searchField | The search field use to search. For example: Email, CustomerName, TrackingNumber. |
| System.String | searchValue | The search value. |
| System.Int32 | startIndex | The starting index of record to retrieve. |
| System.Int32 | recordsToRetrieve | The number of records to retrieve. |
Returns
| Type | Description |
|---|---|
| OrderSearchResults<TOrderGroup> | The order search results. |
Type Parameters
| Name | Description |
|---|---|
| TOrderGroup | The given order type for filter. |