ChannelFactoryBase 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 class.
Overloads
ChannelFactoryBase() |
Initializes a new instance of the ChannelFactoryBase class. |
ChannelFactoryBase(IDefaultCommunicationTimeouts) |
Initializes a new instance of the ChannelFactoryBase class with specified default communication timeouts. |
Remarks
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.
ChannelFactoryBase()
- Source:
- ChannelFactoryBase.cs
- 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
ChannelFactoryBase(IDefaultCommunicationTimeouts)
- Source:
- ChannelFactoryBase.cs
- 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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기