예제 #1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            ServiceTimeoutsElement element = (ServiceTimeoutsElement)from;

            this.TransactionTimeout = element.TransactionTimeout;
        }
예제 #2
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            ServiceTimeoutsElement source = (ServiceTimeoutsElement)from;

#pragma warning suppress 56506 //Microsoft; base.CopyFrom() checks for 'from' being null
            this.TransactionTimeout = source.TransactionTimeout;
        }
예제 #3
0
		public void ServiceTimeoutsElement_defaults () {
			ServiceTimeoutsElement element = new ServiceTimeoutsElement ();

			Assert.AreEqual ("System.ServiceModel.Description.ServiceTimeoutsBehavior", element.BehaviorType.FullName, "BehaviorType");
			Assert.AreEqual ("serviceTimeouts", element.ConfigurationElementName, "ConfigurationElementName");

			Assert.AreEqual (new TimeSpan (0, 0, 0), element.TransactionTimeout, "TransactionTimeout");
		}