37 lines
682 B
C#
37 lines
682 B
C#
//
|
|
// PeerSecuritySettings.cs
|
|
//
|
|
// Author:
|
|
// Marcos Cobena (marcoscobena@gmail.com)
|
|
//
|
|
// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
|
|
//
|
|
|
|
using System;
|
|
|
|
namespace System.ServiceModel
|
|
{
|
|
public class PeerSecuritySettings
|
|
{
|
|
SecurityMode mode;
|
|
|
|
public PeerSecuritySettings ()
|
|
{
|
|
Transport = new PeerTransportSecuritySettings ();
|
|
}
|
|
|
|
public SecurityMode Mode {
|
|
get { return mode; }
|
|
set { mode = value; }
|
|
}
|
|
|
|
public PeerTransportSecuritySettings Transport { get; private set; }
|
|
|
|
internal void CopyTo (PeerSecuritySettings other)
|
|
{
|
|
other.mode = mode;
|
|
other.Transport.CredentialType = Transport.CredentialType;
|
|
}
|
|
}
|
|
}
|