Example #1
0
        public CompositeType GetDataUsingDataContract(CompositeType composite)
        {
            Thread.Sleep(5000);

            if (composite == null)
            {
                throw new ArgumentNullException("composite");
            }
            if (composite.BoolValue)
            {
                composite.StringValue += "Suffix";
            }
            return composite;
        }
Example #2
0
        public async Task<CompositeType> GetDataUsingDataContractAsynCompositeType(CompositeType composite)
        {
            await Task.Factory.StartNew(() => Thread.Sleep(5000));

            return composite;
        }