a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
46 lines
907 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|