Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

46 lines
907 B
C#

//
// PeerCustomResolverSettings.cs
//
// Author:
// Marcos Cobena (marcoscobena@gmail.com)
//
// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
//
using System;
using System.ServiceModel.Channels;
namespace System.ServiceModel.PeerResolvers
{
public class PeerCustomResolverSettings
{
public PeerCustomResolverSettings ()
{
}
public EndpointAddress Address { get; set; }
public Binding Binding { get; set; }
public bool IsBindingSpecified {
get { return Binding != null; }
}
public PeerResolver Resolver { get; set; }
internal PeerCustomResolverBindingElement CreateBinding ()
{
return new PeerCustomResolverBindingElement (this);
}
internal PeerCustomResolverSettings Clone ()
{
return new PeerCustomResolverSettings () {
Binding = this.Binding,
Address = this.Address,
Resolver = this.Resolver
};
}
}
}