ClientBase<TChannel> Oluşturucular

Tanım

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

ClientBase<TChannel>()

Uygulama yapılandırma dosyasından ClientBase<TChannel> varsayılan hedef uç noktayı kullanarak sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(InstanceContext, String, String)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(String, String)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(String, EndpointAddress)

Belirtilen hedef adresi ve uç nokta bilgilerini kullanarak sınıfın yeni bir örneğini ClientBase<TChannel> başlatır.

ClientBase<TChannel>(InstanceContext, String)

Belirtilen geri çağırma hizmeti ve uç nokta yapılandırma bilgilerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

ClientBase<TChannel>(InstanceContext, String, EndpointAddress)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(Binding, EndpointAddress)

Belirtilen bağlamayı ve hedef adresi kullanarak sınıfın yeni bir örneğini ClientBase<TChannel> başlatır.

ClientBase<TChannel>(String)

tarafından endpointConfigurationNameuygulama yapılandırma dosyasında belirtilen yapılandırma bilgilerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

ClientBase<TChannel>(InstanceContext)

çift yönlü konuşmada ClientBase<TChannel> geri çağırma nesnesi olarak kullanarak callbackInstance sınıfının yeni bir örneğini başlatır.

ClientBase<TChannel>(ServiceEndpoint)

Belirtilen ServiceEndpointöğesini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

ClientBase<TChannel>(InstanceContext, ServiceEndpoint)

Belirtilen InstanceContext ve ServiceEndpoint nesnelerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

Açıklamalar

Uygulama yapılandırma dosyasındaki uç nokta bilgilerinden bir WCF istemci nesnesi oluşturmak için kullanın. Oluşturucunun ana işlevi, type parametresinin hedef hizmet sözleşmesinin türü olduğu bir System.ServiceModel.ChannelFactory<TChannel> oluşturmaktır.

ClientBase<TChannel>()

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

Uygulama yapılandırma dosyasından ClientBase<TChannel> varsayılan hedef uç noktayı kullanarak sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase();
protected ClientBase ();
Protected Sub New ()

Özel durumlar

Yapılandırma dosyasında varsayılan uç nokta bilgisi yok, dosyada birden fazla uç nokta veya yapılandırma dosyası yok.

Örnekler

Aşağıdaki kod örneği, bir istemcinin sınıfını genişleten bir SampleServiceClient sınıfta bu oluşturucuyu ClientBase<TChannel> nasıl kullandığını gösterir.

using System;
using System.ServiceModel;
using System.ServiceModel.Channels;

public class Client
{
  public static void Main()
  {
    // Picks up configuration from the config file.
    SampleServiceClient wcfClient = new SampleServiceClient();
    try
    {
        // Making calls.
        Console.WriteLine("Enter the greeting to send: ");
        string greeting = Console.ReadLine();
        Console.WriteLine("The service responded: " + wcfClient.SampleMethod(greeting));

        Console.WriteLine("Press ENTER to exit:");
        Console.ReadLine();

        // Done with service.
        wcfClient.Close();
        Console.WriteLine("Done!");
    }
    catch (TimeoutException timeProblem)
    {
      Console.WriteLine("The service operation timed out. " + timeProblem.Message);
      wcfClient.Abort();
      Console.Read();
    }
    catch(CommunicationException commProblem)
    {
      Console.WriteLine("There was a communication problem. " + commProblem.Message);
      wcfClient.Abort();
      Console.Read();
    }
  }
}


Imports System.ServiceModel
Imports System.ServiceModel.Channels

Public Class Client
  Public Shared Sub Main()
    ' Picks up configuration from the config file.
    Dim wcfClient As New SampleServiceClient()
    Try
        ' Making calls.
        Console.WriteLine("Enter the greeting to send: ")
            Dim greeting = Console.ReadLine()
        Console.WriteLine("The service responded: " & wcfClient.SampleMethod(greeting))

        Console.WriteLine("Press ENTER to exit:")
        Console.ReadLine()

        ' Done with service. 
        wcfClient.Close()
        Console.WriteLine("Done!")
    Catch timeProblem As TimeoutException
      Console.WriteLine("The service operation timed out. " & timeProblem.Message)
      wcfClient.Abort()
      Console.Read()
    Catch commProblem As CommunicationException
      Console.WriteLine("There was a communication problem. " & commProblem.Message)
      wcfClient.Abort()
      Console.Read()
    End Try
  End Sub
End Class

Açıklamalar

Bir hizmeti çağırmak üzere bir WCF istemci nesnesi oluşturmak için bu oluşturucuyu kullanın. Bu oluşturucu, hedef sözleşme olarak type parametresini ve uygulama yapılandırma dosyasındaki bağlama ve adres bilgilerini kullanır.

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext, String, String)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string * string -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As String)

Parametreler

callbackInstance
InstanceContext

İstemcinin bağlı hizmetten gelen iletileri dinlemek için kullandığı geri çağırma nesnesi.

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

remoteAddress
String

Hizmetin adresi.

Özel durumlar

Geri çağırma örneği , endpointConfigurationNameveya remoteAddress şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Bu oluşturucuyu, hedef hizmet için geri çağırma sözleşmesini uygulayan bir hizmet nesnesi geçirmek ve bir uygulama yapılandırma dosyasındaki uç noktanın adından (hedef değer istemci <uç noktası öğesinin özniteliğini bularak bulunur) ve belirtilen adresten hedef uç nokta> bilgilerini belirlemek için kullanın.name

Ayrıca bkz.

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As EndpointAddress)

Parametreler

callbackInstance
InstanceContext

Geri çağırma hizmeti.

binding
Binding

Hizmeti çağırmak için bağlama.

remoteAddress
EndpointAddress

Hizmet uç noktasının adresi.

Özel durumlar

Geri çağırma örneği , bindingveya remoteAddress şeklindedir null.

Şunlara uygulanır

ClientBase<TChannel>(String, String)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase(System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
protected ClientBase (string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : string * string -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (endpointConfigurationName As String, remoteAddress As String)

Parametreler

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

remoteAddress
String

Hizmetin adresi.

Özel durumlar

endpointConfigurationName veya remoteAddress şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Bir uygulama yapılandırma dosyasındaki uç noktanın adından (hedef değer istemci <uç noktası öğesinin özniteliğini bularak bulunur) ve belirtilen adresten hedef uç nokta bilgilerini belirlemek için> bu oluşturucuyu kullanın.name

Ayrıca bkz.

Şunlara uygulanır

ClientBase<TChannel>(String, EndpointAddress)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

Belirtilen hedef adresi ve uç nokta bilgilerini kullanarak sınıfın yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected ClientBase (string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : string * System.ServiceModel.EndpointAddress -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (endpointConfigurationName As String, remoteAddress As EndpointAddress)

Parametreler

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

remoteAddress
EndpointAddress

Hizmetin adresi.

Özel durumlar

endpointConfigurationName veya remoteAddress şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Bir uygulama yapılandırma dosyasındaki uç noktanın adından (hedef değer istemci <uç noktası öğesinin özniteliğini bularak bulunur) ve belirtilen adresten hedef uç nokta bilgilerini belirlemek için> bu oluşturucuyu kullanın.name

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext, String)

Belirtilen geri çağırma hizmeti ve uç nokta yapılandırma bilgilerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String)

Parametreler

callbackInstance
InstanceContext

İstemcinin bağlı hizmetten gelen iletileri dinlemek için kullandığı geri çağırma nesnesi.

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

Özel durumlar

Geri çağırma örneği veya endpointConfigurationName şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Hedef hizmet için geri çağırma sözleşmesini uygulayan bir hizmet nesnesi geçirmek ve istemci uygulaması yapılandırma dosyasından hedef uç nokta bilgilerini belirlemek için bu oluşturucuyu kullanın. Hedef değer, istemci <uç noktası> öğesinin name özniteliği bulunarak bulunur.

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext, String, EndpointAddress)

ClientBase<TChannel> sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As EndpointAddress)

Parametreler

callbackInstance
InstanceContext

İstemcinin bağlı hizmetten gelen iletileri dinlemek için kullandığı geri çağırma nesnesi.

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

remoteAddress
EndpointAddress

Hizmetin adresi.

Özel durumlar

Geri çağırma örneği , endpointConfigurationNameveya remoteAddress şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Bu oluşturucuyu, hedef hizmet için geri çağırma sözleşmesini uygulayan bir hizmet nesnesi geçirmek ve bir uygulama yapılandırma dosyasındaki uç noktanın adından (hedef değer istemci <uç noktası öğesinin özniteliğini bularak bulunur) ve belirtilen adresten hedef uç nokta> bilgilerini belirlemek için kullanın.name

Ayrıca bkz.

Şunlara uygulanır

ClientBase<TChannel>(Binding, EndpointAddress)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

Belirtilen bağlamayı ve hedef adresi kullanarak sınıfın yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected ClientBase (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (binding As Binding, remoteAddress As EndpointAddress)

Parametreler

binding
Binding

Hizmete çağrı yapmak için bağlama.

remoteAddress
EndpointAddress

Hizmet uç noktasının adresi.

Özel durumlar

binding veya remoteAddress şeklindedir null.

Şunlara uygulanır

ClientBase<TChannel>(String)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

tarafından endpointConfigurationNameuygulama yapılandırma dosyasında belirtilen yapılandırma bilgilerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::String ^ endpointConfigurationName);
protected ClientBase (string endpointConfigurationName);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : string -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (endpointConfigurationName As String)

Parametreler

endpointConfigurationName
String

Uygulama yapılandırma dosyasındaki uç noktanın adı.

Özel durumlar

Belirtilen uç nokta bilgileri şeklindedir null.

Uç nokta bulunamıyor veya uç nokta sözleşmesi geçerli değil.

Açıklamalar

Uygulama yapılandırma dosyasında birden fazla hedef uç nokta olduğunda bu oluşturucuyu kullanın. Bu değer, istemci <uç noktası> öğesinin özniteliğidirname.

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext)

çift yönlü konuşmada ClientBase<TChannel> geri çağırma nesnesi olarak kullanarak callbackInstance sınıfının yeni bir örneğini başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext)

Parametreler

callbackInstance
InstanceContext

İstemci uygulamasının bağlı hizmetten gelen iletileri dinlemek için kullandığı geri çağırma nesnesi.

Özel durumlar

Geri çağırma örneği şeklindedir null.

Yapılandırma dosyasında varsayılan uç nokta bilgisi yok, dosyada birden fazla uç nokta veya yapılandırma dosyası yok.

Örnekler

Aşağıdaki kod örneği, hizmetten gelen iletileri dinleyen bir geri çağırma nesnesi geçirmek için bu oluşturucunun bir SampleDuplexHelloClient sınıfla nasıl kullanılacağını gösterir.

using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Threading;

namespace Microsoft.WCF.Documentation
{
  [CallbackBehaviorAttribute(
   IncludeExceptionDetailInFaults= true,
    UseSynchronizationContext=true,
    ValidateMustUnderstand=true
  )]
  public class Client : SampleDuplexHelloCallback
  {
    AutoResetEvent waitHandle;

    public Client()
    {
      waitHandle = new AutoResetEvent(false);
    }

    public void Run()
    {
      // Picks up configuration from the configuration file.
      SampleDuplexHelloClient wcfClient
        = new SampleDuplexHelloClient(new InstanceContext(this), "WSDualHttpBinding_SampleDuplexHello");
      try
      {
        Console.ForegroundColor = ConsoleColor.White;
        Console.WriteLine("Enter a greeting to send and press ENTER: ");
        Console.Write(">>> ");
        Console.ForegroundColor = ConsoleColor.Green;
        string greeting = Console.ReadLine();
        Console.ForegroundColor = ConsoleColor.White;
        Console.WriteLine("Called service with: \r\n\t" + greeting);
        wcfClient.Hello(greeting);
        Console.WriteLine("Execution passes service call and moves to the WaitHandle.");
        this.waitHandle.WaitOne();
        Console.ForegroundColor = ConsoleColor.Blue;
        Console.WriteLine("Set was called.");
        Console.Write("Press ");
        Console.ForegroundColor = ConsoleColor.Red;
        Console.Write("ENTER");
        Console.ForegroundColor = ConsoleColor.Blue;
        Console.Write(" to exit...");
        Console.ReadLine();
      }
      catch (TimeoutException timeProblem)
      {
        Console.WriteLine("The service operation timed out. " + timeProblem.Message);
        Console.ReadLine();
      }
      catch (CommunicationException commProblem)
      {
        Console.WriteLine("There was a communication problem. " + commProblem.Message);
        Console.ReadLine();
      }
    }
    public static void Main()
    {
      Client client = new Client();
      client.Run();
    }

    public void Reply(string response)
    {
      Console.WriteLine("Received output.");
      Console.WriteLine("\r\n\t" + response);
      this.waitHandle.Set();
    }
  }
}

Imports System.ServiceModel
Imports System.ServiceModel.Channels
Imports System.Threading

Namespace Microsoft.WCF.Documentation
  <CallbackBehaviorAttribute(IncludeExceptionDetailInFaults:= True, UseSynchronizationContext:=True, ValidateMustUnderstand:=True)> _
  Public Class Client
      Implements SampleDuplexHelloCallback
    Private waitHandle As AutoResetEvent

    Public Sub New()
      waitHandle = New AutoResetEvent(False)
    End Sub

    Public Sub Run()
      ' Picks up configuration from the configuration file.
      Dim wcfClient As New SampleDuplexHelloClient(New InstanceContext(Me), "WSDualHttpBinding_SampleDuplexHello")
      Try
        Console.ForegroundColor = ConsoleColor.White
        Console.WriteLine("Enter a greeting to send and press ENTER: ")
        Console.Write(">>> ")
        Console.ForegroundColor = ConsoleColor.Green
        Dim greeting As String = Console.ReadLine()
        Console.ForegroundColor = ConsoleColor.White
        Console.WriteLine("Called service with: " & Constants.vbCrLf & Constants.vbTab & greeting)
        wcfClient.Hello(greeting)
        Console.WriteLine("Execution passes service call and moves to the WaitHandle.")
        Me.waitHandle.WaitOne()
        Console.ForegroundColor = ConsoleColor.Blue
        Console.WriteLine("Set was called.")
        Console.Write("Press ")
        Console.ForegroundColor = ConsoleColor.Red
        Console.Write("ENTER")
        Console.ForegroundColor = ConsoleColor.Blue
        Console.Write(" to exit...")
        Console.ReadLine()
      Catch timeProblem As TimeoutException
        Console.WriteLine("The service operation timed out. " & timeProblem.Message)
        Console.ReadLine()
      Catch commProblem As CommunicationException
        Console.WriteLine("There was a communication problem. " & commProblem.Message)
        Console.ReadLine()
      End Try
    End Sub
    Public Shared Sub Main()
      Dim client As New Client()
      client.Run()
    End Sub

    Public Sub Reply(ByVal response As String) Implements SampleDuplexHelloCallback.Reply
      Console.WriteLine("Received output.")
      Console.WriteLine(Constants.vbCrLf & Constants.vbTab & response)
      Me.waitHandle.Set()
    End Sub
  End Class
End Namespace

Açıklamalar

Hizmet sözleşmesi bir geri çağırma hizmeti örneği gerektirdiğinde bu oluşturucuyu kullanın. Hedef uç nokta, uygulama yapılandırma dosyasındaki tür parametresinden ve bilgilerinden oluşturulur.

Ayrıca bkz.

Şunlara uygulanır

ClientBase<TChannel>(ServiceEndpoint)

Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs
Kaynak:
ClientBase.cs

Belirtilen ServiceEndpointöğesini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected ClientBase (System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (endpoint As ServiceEndpoint)

Parametreler

endpoint
ServiceEndpoint

İstemcilerin hizmeti bulmasını ve hizmetle iletişim kurmasını sağlayan hizmetin uç noktası.

Şunlara uygulanır

ClientBase<TChannel>(InstanceContext, ServiceEndpoint)

Belirtilen InstanceContext ve ServiceEndpoint nesnelerini kullanarak sınıfının yeni bir örneğini ClientBase<TChannel> başlatır.

protected:
 ClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected ClientBase (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.ClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpoint As ServiceEndpoint)

Parametreler

callbackInstance
InstanceContext

İstemci uygulamasının bağlı hizmetten gelen iletileri dinlemek için kullandığı geri çağırma nesnesi.

endpoint
ServiceEndpoint

İstemcilerin hizmeti bulmasını ve hizmetle iletişim kurmasını sağlayan hizmetin uç noktası.

Şunlara uygulanır