Exemplo n.º 1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            TransactedBatchingElement element = from as TransactedBatchingElement;

            this.MaxBatchSize = element.MaxBatchSize;
        }
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            TransactedBatchingElement source = from as TransactedBatchingElement;

#pragma warning suppress 56506 //[....]; base.CopyFrom() checks for 'from' being null
            this.MaxBatchSize = source.MaxBatchSize;
        }
Exemplo n.º 3
0
		public void TransactedBatchingElement_defaults () {
			TransactedBatchingElement element = new TransactedBatchingElement ();

			Assert.AreEqual (typeof (TransactedBatchingBehavior), element.BehaviorType, "BehaviorType");
			Assert.AreEqual ("transactedBatching", element.ConfigurationElementName, "ConfigurationElementName");

			Assert.AreEqual (0, element.MaxBatchSize, "MaxBatchSize");
		}