public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); ServiceTimeoutsElement element = (ServiceTimeoutsElement)from; this.TransactionTimeout = element.TransactionTimeout; }
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; }
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"); }