mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
75 lines
2.3 KiB
C#
75 lines
2.3 KiB
C#
//----------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//----------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Discovery
|
|
{
|
|
using System;
|
|
using System.ServiceModel;
|
|
using System.ServiceModel.Channels;
|
|
|
|
class DiscoveryClientOutputChannel<TChannel> : DiscoveryClientChannelBase<TChannel>, IOutputChannel
|
|
where TChannel : class, IOutputChannel
|
|
{
|
|
public DiscoveryClientOutputChannel(
|
|
ChannelManagerBase channelManagerBase,
|
|
IChannelFactory<TChannel> innerChannelFactory,
|
|
FindCriteria findCriteria,
|
|
DiscoveryEndpointProvider discoveryEndpointProvider)
|
|
: base(channelManagerBase, innerChannelFactory, findCriteria, discoveryEndpointProvider)
|
|
{
|
|
}
|
|
|
|
public EndpointAddress RemoteAddress
|
|
{
|
|
get
|
|
{
|
|
if (this.InnerChannel == null)
|
|
{
|
|
return DiscoveryClientBindingElement.DiscoveryEndpointAddress;
|
|
}
|
|
|
|
return this.InnerChannel.RemoteAddress;
|
|
}
|
|
}
|
|
|
|
public Uri Via
|
|
{
|
|
get
|
|
{
|
|
if (this.InnerChannel == null)
|
|
{
|
|
return DiscoveryClientBindingElement.DiscoveryEndpointAddress.Uri;
|
|
}
|
|
|
|
return this.InnerChannel.Via;
|
|
}
|
|
}
|
|
|
|
public virtual IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
|
|
{
|
|
return this.InnerChannel.BeginSend(message, timeout, callback, state);
|
|
}
|
|
|
|
public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
|
|
{
|
|
return this.BeginSend(message, this.DefaultSendTimeout, callback, state);
|
|
}
|
|
|
|
public void EndSend(IAsyncResult result)
|
|
{
|
|
this.InnerChannel.EndSend(result);
|
|
}
|
|
|
|
public virtual void Send(Message message, TimeSpan timeout)
|
|
{
|
|
this.InnerChannel.Send(message, timeout);
|
|
}
|
|
|
|
public void Send(Message message)
|
|
{
|
|
this.Send(message, this.DefaultSendTimeout);
|
|
}
|
|
}
|
|
}
|