# SignalRDataSourceTransportBuilder

## Methods

### Client(System.Action)

Configures the client-side CRUD methods of the SignalR hub.

#### Parameters

##### configurator - System.Action<[SignalRCrudOperationsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrcrudoperationsbuilder)>

The client configuration

#### RETURNS

A [SignalRDataSourceTransportBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrdatasourcetransportbuilder) instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Client(c=>c.Read("methodName"));
                                    });
                                })
                )
             
```

### Client(System.Object)

Configures the client-side CRUD methods of the SignalR hub.

#### Parameters

##### settings - `System.Object`

The client settings object

#### RETURNS

A [SignalRDataSourceTransportBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrdatasourcetransportbuilder) instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Client(new { });
                                    });
                                })
                )
             
```

### Server(System.Action)

Configures the server-side CRUD methods of the SignalR hub.

#### Parameters

##### configurator - System.Action<[SignalRCrudOperationsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrcrudoperationsbuilder)>

The server configuration

#### RETURNS

A [SignalRDataSourceTransportBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrdatasourcetransportbuilder) instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        .Server(c=>c.Read("methodName"));
                                    });
                                })
                )
             
```

### Server(System.Object)

Configures the server-side CRUD methods of the SignalR hub.

#### Parameters

##### settings - `System.Object`

The server configuration object

#### RETURNS

A [SignalRDataSourceTransportBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/signalrdatasourcetransportbuilder) instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Server(new { });
                                    });
                                })
                )
             
```

### ParameterMap(System.Func)

Sets the parameterMap function.

#### Parameters

##### handler - `System.Func<Object,Object>`

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.ParameterMap(p => "handlerName");
                                    });
                                })
                )
             
```

### ParameterMap(System.String)

Sets the parameterMap function.

#### Parameters

##### handler - `System.String`

JavaScript function name

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.ParameterMap("handlerName");
                                    });
                                })
                )
             
```

### Hub(System.Func)

The SignalR hub object returned by the createHubProxy method. The hub option is mandatory

#### Parameters

##### handler - `System.Func<Object,Object>`

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Hub(h => "HubName");
                                    });
                                })
                )
             
```

### Hub(System.String)

The SignalR hub object returned by the createHubProxy method. The hub option is mandatory

#### Parameters

##### handler - `System.String`

JavaScript function name

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Hub("HubName");
                                    });
                                })
                )
             
```

### Promise(System.Func)

The promise returned by the start method of the SignalR connection. The promise option is mandatory.

#### Parameters

##### handler - `System.Func<Object,Object>`

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Promise(p => "Promise");
                                    });
                                })
                )
             
```

### Promise(System.String)

The promise returned by the start method of the SignalR connection. The promise option is mandatory.

#### Parameters

##### handler - `System.String`

JavaScript function name

#### RETURNS

A  instance for method chaining.

#### Example

```
 
                @(Html.Kendo().DataSource<OrderViewModel>()
                                .Name("ds")
                                 .SignalR(x=> {
                                    x.Transport(t=> {
                                        t.Promise("Promise");
                                    });
                                })
                )
             
```
