ActivityExtensions.GetStateClient Method

Definition

Overloads

GetStateClient(IActivity, MicrosoftAppCredentials, String, DelegatingHandler[])
GetStateClient(IActivity, String, String, String, DelegatingHandler[])

GetStateClient(IActivity, MicrosoftAppCredentials, String, DelegatingHandler[])

Warning

This API is now obsolete.

[System.Obsolete("Deprecated: This method will only get the default state client, if you have implemented a custom state client it will not retrieve it")]
public static Microsoft.Bot.Connector.StateClient GetStateClient (this Microsoft.Bot.Connector.IActivity activity, Microsoft.Bot.Connector.MicrosoftAppCredentials credentials, string serviceUrl = null, params System.Net.Http.DelegatingHandler[] handlers);
static member GetStateClient : Microsoft.Bot.Connector.IActivity * Microsoft.Bot.Connector.MicrosoftAppCredentials * string * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.StateClient
<Extension()>
Public Function GetStateClient (activity As IActivity, credentials As MicrosoftAppCredentials, Optional serviceUrl As String = null, ParamArray handlers As DelegatingHandler()) As StateClient

Parameters

activity
IActivity
serviceUrl
String
handlers
DelegatingHandler[]

Returns

Attributes

GetStateClient(IActivity, String, String, String, DelegatingHandler[])

public static Microsoft.Bot.Connector.StateClient GetStateClient (this Microsoft.Bot.Connector.IActivity activity, string microsoftAppId = null, string microsoftAppPassword = null, string serviceUrl = null, params System.Net.Http.DelegatingHandler[] handlers);
static member GetStateClient : Microsoft.Bot.Connector.IActivity * string * string * string * System.Net.Http.DelegatingHandler[] -> Microsoft.Bot.Connector.StateClient
<Extension()>
Public Function GetStateClient (activity As IActivity, Optional microsoftAppId As String = null, Optional microsoftAppPassword As String = null, Optional serviceUrl As String = null, ParamArray handlers As DelegatingHandler()) As StateClient

Parameters

activity
IActivity
microsoftAppId
String
microsoftAppPassword
String
serviceUrl
String
handlers
DelegatingHandler[]

Returns

Applies to