Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }