Пример #1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            ClientViaElement element = (ClientViaElement)from;

            this.ViaUri = element.ViaUri;
        }
Пример #2
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            ClientViaElement source = (ClientViaElement)from;

#pragma warning suppress 56506 //Microsoft; base.CopyFrom() check for 'from' being null
            this.ViaUri = source.ViaUri;
        }
Пример #3
0
		public void ClientViaElement_defaults () {
			ClientViaElement element = new ClientViaElement ();

			Assert.AreEqual (typeof (ClientViaBehavior), element.BehaviorType, "BehaviorType");
			Assert.AreEqual ("clientVia", element.ConfigurationElementName, "ConfigurationElementName");

			Assert.AreEqual (null, element.ViaUri, "ViaUri");
		}