Пример #1
0
        public void EnableWcfDataServicesClientBehavior(
            Func <IEdmType, string, IEdmType> typeResolver,
            string odataNamespace,
            string typeScheme,
            Func <ODataEntry, XmlReader, Uri, XmlReader> entryXmlCustomizationCallback)
        {
            ExceptionUtils.CheckArgumentNotNull(odataNamespace, "odataNamespace");
            ExceptionUtils.CheckArgumentNotNull(typeScheme, "typeScheme");

            this.SetAtomEntryXmlCustomizationCallback(entryXmlCustomizationCallback);
            this.readerBehavior = ODataReaderBehavior.CreateWcfDataServicesClientBehavior(typeResolver, odataNamespace, typeScheme);
        }