---
title: ISiteContext
slug: configured-commerce/docs/isitecontext
docTags: 
createdAt: 2026-08-13T10:46:30.000Z
---

## Description

The context for the current Storefront session. The context includes objects like the current bill-to and ship-to customers, language, currency, website, and user. To obtain the current site context, you should use SiteContext.Current. This object is created new for each HTTP request.

## Properties

### BillTo

Gets the current bill-to customer.

```csharp
Customer BillTo { get; }
```

### CurrencyDto

Gets the current currency.

```csharp
CurrencyDto CurrencyDto { get; }
```

### DeviceType

Gets the current device type. This can be one of Desktop, Tablet, or Phone.

```csharp
DeviceType DeviceType { get; }
```

### FulfillmentMethod

Gets the current fulfillment method. This can be Ship or PickUp. If the **Enable Warehouse Pickup** setting is **No**, it will always be Ship.

```csharp
string FulfillmentMethod { get; }
```

### LanguageDto

Gets the current language.

```csharp
LanguageDto LanguageDto { get; }
```

### Microsite

Gets the microsite identifier for the current microsite. This only applies if the current user is browsing a microsite.

```csharp
string Microsite { get; }
```

### PersonaDto

Gets the current persona applied to the current user. This will only return an object if the current user has a persona applied.

```csharp
PersonaDto PersonaDto { get; }
```

### PickUpWarehouseDto

Gets the current PickUp warehouse. Used only when FulfillmentMethod is PickUp.

```csharp
WarehouseDto PickUpWarehouseDto { get; }
```

### RememberedUserProfile

Gets the remembered user profile. This will only return an object if the current user chose to have their account remembered when they are logged into the Storefront.

```csharp
UserProfile RememberedUserProfile { get; }
```

### ShipTo

Gets the current ship-to customer.

```csharp
Customer ShipTo { get; }
```

### UserProfile

Gets the current user.

```csharp
UserProfile UserProfile { get; }
```

### WarehouseDto

Gets the default warehouse for the current ship-to or bill-to customer. If a default warehouse can not be found, the default warehouse for the application is returned.

```csharp
WarehouseDto WarehouseDto { get; }
```

### WebsiteDto

Gets the current website being browsed by the user.

```csharp
WebsiteDto WebsiteDto { get; }
```

## Methods

### IsUserInRole(string)

Indicates whether or not the specified role is assigned to the current user.

```csharp
bool IsUserInRole(string roleName)
```

**Parameters**

- **roleName** – The name of role. This can be a standard or custom role (not provided by Configured Commerce).

**Returns**

Returns true if the specified role is assigned to the current user.
