ChannelFactoryBase<TChannel> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ChannelFactoryBase<TChannel> class.
Overloads
ChannelFactoryBase<TChannel>() |
Initializes a new instance of the ChannelFactoryBase<TChannel> class. |
ChannelFactoryBase<TChannel>(IDefaultCommunicationTimeouts) |
Initializes a new instance of the ChannelFactoryBase<TChannel> class with the default communication timeouts specified. |
Remarks
The default ChannelFactoryBase<TChannel>() constructor initializes timeout properties with the service model timeout values when exchanging messages. The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. Use ChannelFactoryBase<TChannel>(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.
ChannelFactoryBase<TChannel>()
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Initializes a new instance of the ChannelFactoryBase<TChannel> class.
protected:
ChannelFactoryBase();
protected ChannelFactoryBase ();
Protected Sub New ()
Remarks
The parameterless constructor initializes timeout properties with the service model timeout values when exchanging messages. The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. Use ChannelFactoryBase<TChannel>(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.
Applies to
ChannelFactoryBase<TChannel>(IDefaultCommunicationTimeouts)
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Initializes a new instance of the ChannelFactoryBase<TChannel> class with the default communication timeouts specified.
protected:
ChannelFactoryBase(System::ServiceModel::IDefaultCommunicationTimeouts ^ timeouts);
protected ChannelFactoryBase (System.ServiceModel.IDefaultCommunicationTimeouts timeouts);
new System.ServiceModel.Channels.ChannelFactoryBase<'Channel> : System.ServiceModel.IDefaultCommunicationTimeouts -> System.ServiceModel.Channels.ChannelFactoryBase<'Channel>
Protected Sub New (timeouts As IDefaultCommunicationTimeouts)
Parameters
- timeouts
- IDefaultCommunicationTimeouts
The IDefaultCommunicationTimeouts that specifies the default timeouts for open, send, receive, and close operations when exchanging messages.
Remarks
Use ChannelFactoryBase<TChannel>(IDefaultCommunicationTimeouts) instead of the parameterless constructor if you want to specify custom values for the open, send, receive, and close operation timeouts instead of using the service model default values.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om