ChannelFactoryBase Constructors
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 class.
ChannelFactoryBase() |
Initializes a new instance of the ChannelFactoryBase class. |
ChannelFactoryBase(IDefaultCommunicationTimeouts) |
Initializes a new instance of the ChannelFactoryBase class with specified default communication timeouts. |
The default ChannelFactoryBase() 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(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Initializes a new instance of the ChannelFactoryBase 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(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Initializes a new instance of the ChannelFactoryBase class with specified default communication timeouts.
protected:
ChannelFactoryBase(System::ServiceModel::IDefaultCommunicationTimeouts ^ timeouts);
protected ChannelFactoryBase(System.ServiceModel.IDefaultCommunicationTimeouts timeouts);
new System.ServiceModel.Channels.ChannelFactoryBase : System.ServiceModel.IDefaultCommunicationTimeouts -> System.ServiceModel.Channels.ChannelFactoryBase
Protected Sub New (timeouts As IDefaultCommunicationTimeouts)
Parameters
- timeouts
- IDefaultCommunicationTimeouts
The IDefaultCommunicationTimeouts specifying the default timeouts for open, send, receive, and close operations when exchanging messages.
Remarks
Use ChannelFactoryBase(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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: