You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
ikvm-native
llvm
m4
man
mcs
build
class
Accessibility
Commons.Xml.Relaxng
Cscompmgd
CustomMarshalers
Facades
I18N
IBM.Data.DB2
ICSharpCode.SharpZipLib
Microsoft.Build
Microsoft.Build.Engine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Utilities
Microsoft.CSharp
Microsoft.NuGet.Build.Tasks
Microsoft.VisualC
Microsoft.Web.Infrastructure
MicrosoftAjaxLibrary
Mono.Btls.Interface
Mono.C5
Mono.CSharp
Mono.Cairo
Mono.Cecil
Mono.Cecil.Mdb
Mono.CodeContracts
Mono.CompilerServices.SymbolWriter
Mono.Data.Sqlite
Mono.Data.Tds
Mono.Debugger.Soft
Mono.Http
Mono.Management
Mono.Messaging
Mono.Messaging.RabbitMQ
Mono.Options
Mono.Parallel
Mono.Posix
Mono.Profiler.Log
Mono.Runtime.Tests
Mono.Security
Mono.Security.Win32
Mono.Simd
Mono.Tasklets
Mono.WebBrowser
Mono.XBuild.Tasks
Novell.Directory.Ldap
PEAPI
RabbitMQ.Client
SMDiagnostics
System
System.ComponentModel.Composition.4.5
System.ComponentModel.DataAnnotations
System.Configuration
System.Configuration.Install
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Linq
System.Data.OracleClient
System.Data.Services
System.Data.Services.Client
System.Deployment
System.Design
System.DirectoryServices
System.DirectoryServices.Protocols
System.Drawing
System.Drawing.Design
System.Dynamic
System.EnterpriseServices
System.IO.Compression
System.IO.Compression.FileSystem
System.IdentityModel
System.IdentityModel.Selectors
System.Json
System.Json.Microsoft
System.Management
System.Messaging
System.Net
System.Net.Http
System.Net.Http.Formatting
System.Net.Http.WebRequest
System.Net.Http.WinHttpHandler
System.Numerics
System.Numerics.Vectors
System.Reactive.Core
System.Reactive.Debugger
System.Reactive.Experimental
System.Reactive.Interfaces
System.Reactive.Linq
System.Reactive.Observable.Aliases
System.Reactive.PlatformServices
System.Reactive.Providers
System.Reactive.Runtime.Remoting
System.Reactive.Windows.Forms
System.Reactive.Windows.Threading
System.Reflection.Context
System.Runtime.Caching
System.Runtime.CompilerServices.Unsafe
System.Runtime.DurableInstancing
System.Runtime.Remoting
System.Runtime.Serialization
System.Runtime.Serialization.Formatters.Soap
System.Security
System.ServiceModel
Assembly
Documentation
Mono.CodeGeneration
Mono.Security.Protocol.Ntlm
Mono.Xml.XPath
ReferenceSources
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Channels
System.ServiceModel.Channels.Http
System.ServiceModel.Channels.NetTcp
System.ServiceModel.Channels.Security
System.ServiceModel.ComIntegration
System.ServiceModel.Configuration
System.ServiceModel.Description
System.ServiceModel.Diagnostics
System.ServiceModel.Dispatcher
System.ServiceModel.MsmqIntegration
System.ServiceModel.PeerResolvers
System.ServiceModel.Security
System.ServiceModel.Security.Tokens
Test
FeatureBased
MetadataTests
Resources
System.ServiceModel
System.ServiceModel.Channels
AddressHeaderTest.cs
AddressingVersionTest.cs
AsymmetricSecurityBindingElementTest.cs
BinaryMessageEncodingBindingElementTest.cs
BindingContextTest.cs
BindingElementTest.cs
BindingTest.cs
CalcSampleProxy.cs
CommunicationObjectSyncTest.cs
CommunicationObjectTest.cs
ConnectionOrientedTransportBindingElementTest.cs
CustomBindingTest.cs
CustomPolicyConversionContext.cs
DebugBindingElement.cs
EmptyFaultExceptionTest.cs
EnvelopeVersionTest.cs
FaultConverterTest.cs
FaultExceptionTest.cs
HandlerBodyWriter.cs
HandlerTransportBindingElement.cs
HttpRequestMessagePropertyTest.cs
HttpTransportBindingElementTest.cs
HttpsTransportBindingElementTest.cs
InterceptorBindingElement.cs
InvalidBindingElement.cs
LocalClientSecuritySettingsTest.cs
MessageBufferTest.cs
MessageEncoderTest.cs
MessageEncodingBindingElementTest.cs
MessageFaultTest.cs
MessageHeaderTest.cs
MessageHeadersTest.cs
MessagePropertiesTest.cs
MessageTest.cs
MessageVersionTest.cs
MsmqBindingElementBaseTest.cs
MsmqTransportBindingElementTest.cs
NamedPipeTransportBindingElementTest.cs
OneWayBindingElementTest.cs
OutputChannelBase.cs
PeerTransportBindingElementTest.cs
ReplyChannelBase.cs
RequestChannelBase.cs
SecurityAssert.cs
SecurityBindingElementTest.cs
SslStreamSecurityBindingElementTest.cs
SymmetricSecurityBindingElementTest.cs
TcpTransportBindingElementTest.cs
TextMessageEncodingBindingElementTest.cs
TransactionFlowBindingElementTest.cs
System.ServiceModel.Configuration
System.ServiceModel.Description
System.ServiceModel.Dispatcher
System.ServiceModel.PeerResolvers
System.ServiceModel.Security
System.ServiceModel.Security.Tokens
config
NUnitMoonHelper.cs
corefx
resources
Dummy_2_1.cs
Dummy_XM_4_5.cs
Makefile
System.ServiceModel.dll.sources
System.ServiceModel_test.dll.sources
mobile_System.ServiceModel.dll.sources
monodroid_System.ServiceModel.dll.sources
monodroid_System.ServiceModel_test.dll.exclude.sources
monotouch_System.ServiceModel.dll.sources
monotouch_tv_System.ServiceModel.dll.sources
monotouch_watch_System.ServiceModel.dll.sources
orbis_System.ServiceModel.dll.sources
testing_aot_full_System.ServiceModel.dll.exclude.sources
testing_aot_full_System.ServiceModel.dll.sources
testing_aot_full_System.ServiceModel_test.dll.exclude.sources
testing_aot_full_System.ServiceModel_test.dll.sources
testing_aot_full_interp_System.ServiceModel.dll.exclude.sources
testing_aot_full_interp_System.ServiceModel.dll.sources
testing_aot_hybrid_System.ServiceModel.dll.exclude.sources
testing_aot_hybrid_System.ServiceModel.dll.sources
testing_aot_hybrid_System.ServiceModel_test.dll.exclude.sources
testing_winaot_interp_System.ServiceModel.dll.exclude.sources
testing_winaot_interp_System.ServiceModel.dll.sources
unreal_System.ServiceModel.dll.sources
wasm_System.ServiceModel.dll.exclude.sources
wasm_System.ServiceModel.dll.sources
win32_monodroid_System.ServiceModel_test.dll.exclude.sources
winaot_System.ServiceModel.dll.sources
xammac_System.ServiceModel.dll.sources
xammac_net_4_5_System.ServiceModel.dll.sources
System.ServiceModel.Activation
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.Web
System.ServiceProcess
System.Threading.Tasks.Dataflow
System.Transactions
System.Web
System.Web.Abstractions
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Extensions
System.Web.Extensions.Design
System.Web.Http
System.Web.Http.SelfHost
System.Web.Http.WebHost
System.Web.Mobile
System.Web.Mvc3
System.Web.Razor
System.Web.RegularExpressions
System.Web.Routing
System.Web.Services
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
System.Windows
System.Windows.Forms
System.Windows.Forms.DataVisualization
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.XML
System.Xaml
System.Xml.Linq
System.Xml.Serialization
SystemWebTestShim
WebMatrix.Data
WindowsBase
aot-compiler
corlib
dlr
doc
legacy
lib
monodoc
notes
reference-assemblies
referencesource
test-helpers
LICENSE
Makefile
Open.snk
README
ecma.pub
mono.pub
mono.snk
msfinal.pub
reactive.pub
silverlight.pub
winfx.pub
winfx3.pub
docs
errors
ilasm
jay
mcs
packages
tests
tools
AUTHORS
COPYING
INSTALL.txt
Makefile
MonoIcon.png
README
ScalableMonoIcon.svg
mkinstalldirs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
81 lines
2.5 KiB
C#
81 lines
2.5 KiB
C#
![]() |
//
|
||
|
// RequestChannelBase.cs
|
||
|
//
|
||
|
// Author:
|
||
|
// Atsushi Enomoto <atsushi@ximian.com>
|
||
|
//
|
||
|
// Copyright (C) 2006 Novell, Inc. http://www.novell.com
|
||
|
//
|
||
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||
|
// a copy of this software and associated documentation files (the
|
||
|
// "Software"), to deal in the Software without restriction, including
|
||
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||
|
// permit persons to whom the Software is furnished to do so, subject to
|
||
|
// the following conditions:
|
||
|
//
|
||
|
// The above copyright notice and this permission notice shall be
|
||
|
// included in all copies or substantial portions of the Software.
|
||
|
//
|
||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
//
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.IO;
|
||
|
using System.Net;
|
||
|
using System.Net.Security;
|
||
|
using System.ServiceModel;
|
||
|
using System.ServiceModel.Channels;
|
||
|
using System.ServiceModel.Description;
|
||
|
using System.ServiceModel.Security;
|
||
|
|
||
|
namespace MonoTests.System.ServiceModel.Channels
|
||
|
{
|
||
|
public abstract class RequestChannelBase : ChannelBase, IRequestChannel
|
||
|
{
|
||
|
ChannelFactoryBase channel_factory;
|
||
|
|
||
|
public RequestChannelBase (ChannelFactoryBase factory)
|
||
|
: base (factory)
|
||
|
{
|
||
|
this.channel_factory = factory;
|
||
|
}
|
||
|
|
||
|
protected override TimeSpan DefaultCloseTimeout {
|
||
|
get { return TimeSpan.FromSeconds (5); }
|
||
|
}
|
||
|
|
||
|
protected override TimeSpan DefaultOpenTimeout {
|
||
|
get { return TimeSpan.FromSeconds (5); }
|
||
|
}
|
||
|
|
||
|
public abstract EndpointAddress RemoteAddress { get; }
|
||
|
|
||
|
public abstract Uri Via { get; }
|
||
|
|
||
|
// Request
|
||
|
|
||
|
public Message Request (Message message)
|
||
|
{
|
||
|
return Request (message, DefaultSendTimeout);
|
||
|
}
|
||
|
|
||
|
public abstract Message Request (Message message, TimeSpan timeout);
|
||
|
|
||
|
public IAsyncResult BeginRequest (Message message, AsyncCallback callback, object state)
|
||
|
{
|
||
|
return BeginRequest (message, DefaultSendTimeout, callback, state);
|
||
|
}
|
||
|
|
||
|
public abstract IAsyncResult BeginRequest (Message message, TimeSpan timeout, AsyncCallback callback, object state);
|
||
|
|
||
|
public abstract Message EndRequest (IAsyncResult result);
|
||
|
}
|
||
|
}
|