DuplexChannelFactory<TChannel>.CreateChannel Metoda

Definicja

Tworzy kanał dwukierunkowy określonego typu do określonego adresu punktu końcowego.

Przeciążenia

CreateChannel(Object, Binding, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(Object, String)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext, String)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(Object, Binding, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext, Binding, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(InstanceContext, Binding, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

CreateChannel(Object, Binding, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel

Parametry

callbackObject
Object

Klient Object , którego używa do nasłuchiwania komunikatów z połączonej usługi.

binding
Binding

Używane Binding do nawiązywania połączenia z usługą przez kanały produkowane przez fabrykę.

endpointAddress
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

via
Uri

Element Uri zawierający adres transportu, do którego jest wysyłana wiadomość.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

binding lub endpointAddress to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(InstanceContext)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance);
override this.CreateChannel : System.ServiceModel.InstanceContext -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

Zwraca

TChannel

Kanał dwukierunkowy typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(Object, String)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (object callbackObject, string endpointConfigurationName);
static member CreateChannel : obj * string -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, endpointConfigurationName As String) As TChannel

Parametry

callbackObject
Object

Klient Object , którego używa do nasłuchiwania komunikatów z połączonej usługi.

endpointConfigurationName
String

Nazwa używana dla konfiguracji punktu końcowego.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

endpointConfigurationName to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 override TChannel CreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public override TChannel CreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overrides Function CreateChannel (address As EndpointAddress, via As Uri) As TChannel

Parametry

address
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

via
Uri

Element Uri zawierający adres transportu, do którego jest wysyłana wiadomość.

Zwraca

TChannel

Kanał dwukierunkowy typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

address to null.

Dotyczy

CreateChannel(InstanceContext, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

address
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

Zwraca

TChannel

Kanał dwukierunkowy typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

address to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(InstanceContext, String)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
static member CreateChannel : System.ServiceModel.InstanceContext * string -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, endpointConfigurationName As String) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

endpointConfigurationName
String

Nazwa używana dla konfiguracji punktu końcowego.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

endpointConfigurationName to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(Object, Binding, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress) As TChannel

Parametry

callbackObject
Object

Klient Object , którego używa do nasłuchiwania komunikatów z połączonej usługi.

binding
Binding

Używane Binding do nawiązywania połączenia z usługą przez kanały produkowane przez fabrykę.

endpointAddress
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

binding lub endpointAddress to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(InstanceContext, Binding, EndpointAddress)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

binding
Binding

Używane Binding do nawiązywania połączenia z usługą przez kanały produkowane przez fabrykę.

endpointAddress
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

binding lub endpointAddress to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(InstanceContext, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 virtual TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public virtual TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overridable Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress, via As Uri) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

address
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

via
Uri

Element Uri zawierający adres transportu, do którego jest wysyłana wiadomość.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

address to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy

CreateChannel(InstanceContext, Binding, EndpointAddress, Uri)

Tworzy kanał dwukierunkowy między usługą a wystąpieniem wywołania zwrotnego na kliencie.

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel

Parametry

callbackInstance
InstanceContext

Klient InstanceContext , którego używa do nasłuchiwania komunikatów z połączonej usługi.

binding
Binding

Używane Binding do nawiązywania połączenia z usługą przez kanały produkowane przez fabrykę.

endpointAddress
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

via
Uri

Element Uri zawierający adres transportu, do którego jest wysyłana wiadomość.

Zwraca

TChannel

Kanał typu TChannel, ogólny parametr fabryki, między klientem a usługą.

Wyjątki

binding lub endpointAddress to null.

callbackInstance lub callbackInstance. UserObject to null.

Dotyczy