示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the <paramref name="callbackInstance"/> as the callback object in a duplex conversation.
 /// </summary>
 /// <param name="callbackInstance">The callback object that the client application uses to listen for messages from the connected service.</param><exception cref="T:System.ArgumentNullException">The callback instance is null.</exception><exception cref="T:System.InvalidOperationException">Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file.</exception>
 public ClientBase(InstanceContext callbackInstance)
 {
     _innerClient = new InnerClient <TChannel>(callbackInstance);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class.
 /// </summary>
 /// <param name="callbackInstance">The callback object that the client uses to listen for messages from the connected service.</param><param name="endpointConfigurationName">The name of the endpoint in the application configuration file.</param><param name="remoteAddress">The address of the service.</param><exception cref="T:System.ArgumentNullException">The callback instance is null.</exception><exception cref="T:System.ArgumentNullException">The endpoint is null.</exception><exception cref="T:System.ArgumentNullException">The remote address is null.</exception><exception cref="T:System.InvalidOperationException">The endpoint cannot be found or the endpoint contract is not valid.</exception>
 public ClientBase(InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress)
 {
     _innerClient = new InnerClient <TChannel>(callbackInstance, endpointConfigurationName, remoteAddress);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the specified binding and target address.
 /// </summary>
 /// <param name="binding">The binding with which to make calls to the service.</param><param name="remoteAddress">The address of the service endpoint.</param><exception cref="T:System.ArgumentNullException">The binding is null.</exception><exception cref="T:System.ArgumentNullException">The remote address is null.</exception>
 public ClientBase(Binding binding, EndpointAddress remoteAddress)
 {
     _innerClient = new InnerClient <TChannel>(binding, remoteAddress);
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the specified  <see cref="T:System.ServiceModel.Description.ServiceEndpoint"/>.
 /// </summary>
 /// <param name="endpoint">The endpoint for a service that allows clients to find and communicate with the service.</param>
 public ClientBase(ServiceEndpoint endpoint)
 {
     _innerClient = new InnerClient <TChannel>(endpoint);
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the specified target address and endpoint information.
 /// </summary>
 /// <param name="endpointConfigurationName">The name of the endpoint in the application configuration file.</param><param name="remoteAddress">The address of the service.</param><exception cref="T:System.ArgumentNullException">The endpoint is null.</exception><exception cref="T:System.ArgumentNullException">The remote address is null.</exception><exception cref="T:System.InvalidOperationException">The endpoint cannot be found or the endpoint contract is not valid.</exception>
 public ClientBase(string endpointConfigurationName, EndpointAddress remoteAddress)
 {
     _innerClient = new InnerClient <TChannel>(endpointConfigurationName, remoteAddress);
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the configuration information specified in the application configuration file by <paramref name="endpointConfigurationName"/>.
 /// </summary>
 /// <param name="endpointConfigurationName">The name of the endpoint in the application configuration file.</param><exception cref="T:System.ArgumentNullException">The specified endpoint information is null.</exception><exception cref="T:System.InvalidOperationException">The endpoint cannot be found or the endpoint contract is not valid.</exception>
 public ClientBase(string endpointConfigurationName)
 {
     _innerClient = new InnerClient <TChannel>(endpointConfigurationName);
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the default target endpoint from the application configuration file.
 /// </summary>
 /// <exception cref="T:System.InvalidOperationException">Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file.</exception>
 public ClientBase()
     : this("*")
 {
     _innerClient = new InnerClient <TChannel>();
 }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class using the specified  <see cref="T:System.ServiceModel.InstanceContext"/> and  <see cref="T:System.ServiceModel.Description.ServiceEndpoint"/> objects.
 /// </summary>
 /// <param name="callbackInstance">The callback object that the client application uses to listen for messages from the connected service.</param><param name="endpoint">The endpoint for a service that allows clients to find and communicate with the service.</param>
 public ClientBase(InstanceContext callbackInstance, ServiceEndpoint endpoint)
 {
     _innerClient = new InnerClient <TChannel>(callbackInstance, endpoint);
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.ServiceModel.ClientBase`1"/> class.
 /// </summary>
 /// <param name="callbackInstance">The callback service.</param><param name="binding">The binding with which to call the service.</param><param name="remoteAddress">The address of the service endpoint.</param><exception cref="T:System.ArgumentNullException">The callback instance is null.</exception><exception cref="T:System.ArgumentNullException">The binding is null.</exception><exception cref="T:System.ArgumentNullException">The remote address is null.</exception>
 public ClientBase(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress)
 {
     _innerClient = new InnerClient <TChannel>(callbackInstance, binding, remoteAddress);
 }