OrderServiceAgent Constructor (String, String[], IPromptForCredentials)
Initializes a new instance of the OrderServiceAgent class for communicating with a specific Web service.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
serviceUrl As String, _
allowedAuthModes As String(), _
credentialPrompter As IPromptForCredentials _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthModes As String()
Dim credentialPrompter As IPromptForCredentials
Dim instance As New OrderServiceAgent(serviceUrl, _
allowedAuthModes, credentialPrompter)
public OrderServiceAgent(
string serviceUrl,
string[] allowedAuthModes,
IPromptForCredentials credentialPrompter
)
public:
OrderServiceAgent(
String^ serviceUrl,
array<String^>^ allowedAuthModes,
IPromptForCredentials^ credentialPrompter
)
public function OrderServiceAgent(
serviceUrl : String,
allowedAuthModes : String[],
credentialPrompter : IPromptForCredentials
)
Parameters
- serviceUrl
Type: System..::.String
The URL of the Web service this agent will run against.
- allowedAuthModes
Type: array<System..::.String>[]()[]
A list of authorization modes which are allowed.
- credentialPrompter
Type: Microsoft.CommerceServer..::.IPromptForCredentials
An IPromptForCredentials instance which will handle prompting for credentials if required.
Remarks
The OrderServiceAgent serves to abstract data from the user interface. The OrderServiceAgent provides authentication and SOAP proxy services when initialized to communicate with and authenticate against a Web service.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.