Пример #1
0
        /// <summary>
        /// Initializes static members of the WrappedLinkInfo class.
        /// </summary>
        static WrappedLinkInfo()
        {
#if SILVERLIGHT && !WIN8
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.LinkInfo", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.LinkInfo", "Microsoft.OData.Client");
#endif
        }
Пример #2
0
        /// <summary>
        /// Initializes static members of the WrappedOperationParameter class.
        /// </summary>
        static WrappedOperationParameter()
        {
#if SILVERLIGHT && !WIN8
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.OperationParameter", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.OperationParameter", "Microsoft.OData.Client");
#endif
        }
Пример #3
0
        /// <summary>
        /// Initializes static members of the WrappedDataServiceRequest class.
        /// </summary>
        static WrappedDataServiceRequest()
        {
#if SILVERLIGHT && !WIN8 && !WINDOWS_PHONE
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceRequest", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceRequest", "Microsoft.OData.Client");
#endif
        }
Пример #4
0
        /// <summary>
        /// Initializes static members of the WrappedLinkDescriptor class.
        /// </summary>
        static WrappedLinkDescriptor()
        {
#if SILVERLIGHT && !WIN8 && !WINDOWS_PHONE
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.LinkDescriptor", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.LinkDescriptor", "Microsoft.OData.Client");
#endif
        }
        /// <summary>
        /// Initializes static members of the WrappedDataServiceStreamLink class.
        /// </summary>
        static WrappedDataServiceStreamLink()
        {
#if SILVERLIGHT && !WIN8
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceStreamLink", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceStreamLink", "Microsoft.OData.Client");
#endif
        }
Пример #6
0
        /// <summary>
        /// Initializes static members of the WrappedQueryOperationResponse class.
        /// </summary>
        static WrappedQueryOperationResponse()
        {
#if SILVERLIGHT && !WIN8
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.QueryOperationResponse`1", "Microsoft.OData.Client.SL");
#else
            WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.QueryOperationResponse`1", "Microsoft.OData.Client");
#endif
        }
Пример #7
0
 /// <summary>
 /// Initializes static members of the WrappedDataServiceQuery class.
 /// </summary>
 static WrappedDataServiceQuery()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceQuery", "Microsoft.OData.Client");
     BeforeEventArgs["System.Collections.IEnumerable Execute()"] = typeof(EventsTracker.BeforeExecuteEventArgs).GetInstanceConstructors(true).First();
     AfterEventArgs["System.Collections.IEnumerable Execute()"]  = typeof(EventsTracker.AfterExecuteEventArgs).GetInstanceConstructors(true).First();
     BeforeEvents["System.Collections.IEnumerable Execute()"]    = typeof(EventsTracker).GetMethod("RaiseBeforeExecute", null, false);
     AfterEvents["System.Collections.IEnumerable Execute()"]     = typeof(EventsTracker).GetMethod("RaiseAfterExecute", null, false);
 }
Пример #8
0
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQuery`1[TElement] Expand[TTarget](System.Linq.Expressions.Expression`1[System.Func`2[TElement,TTarget]])' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <typeparam name="TTarget">The wrapper type for the 'TTarget' generic parameter.</typeparam>
 /// <param name="typeTTarget">The CLR generic type for the 'TTarget' parameter.</param>
 /// <param name="navigationPropertyAccessor">The value of the 'navigationPropertyAccessor' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQuery <TElement> Expand <TTarget>(Type typeTTarget, System.Linq.Expressions.Expression <System.Func <TElement, TTarget> > navigationPropertyAccessor)
     where TTarget : WrappedObject
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQuery <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQuery`1[TElement] Expand[TTarget](System.Linq.Expressions.Expression`1[System.Func`2[TElement,TTarget]])"), new object[] { navigationPropertyAccessor }, new Type[] { typeTTarget }));
 }
Пример #9
0
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQuery`1[TElement] Expand(System.String)' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <param name="path">The value of the 'path' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQuery <TElement> Expand(string path)
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQuery <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQuery`1[TElement] Expand(System.String)"), new object[] { path }));
 }
Пример #10
0
 /// <summary>
 /// Initializes static members of the WrappedLinkInfo class.
 /// </summary>
 static WrappedLinkInfo()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.LinkInfo", "Microsoft.OData.Client");
 }
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQueryContinuation`1[T] GetContinuation[T](System.Collections.Generic.IEnumerable`1[T])' on the 'Microsoft.OData.Client.QueryOperationResponse' type.
 /// </summary>
 /// <typeparam name="T">The wrapper type for the 'T' generic parameter.</typeparam>
 /// <param name="typeT">The CLR generic type for the 'T' parameter.</param>
 /// <param name="collection">The value of the 'collection' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQueryContinuation <T> GetContinuation <T>(Type typeT, WrappedIEnumerable <T> collection)
     where T : WrappedObject
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQueryContinuation <T> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQueryContinuation`1[T] GetContinuation[T](System.Collections.Generic.IEnumerable`1[T])"), new object[] { collection }, new Type[] { typeT }));
 }
Пример #12
0
 /// <summary>
 /// Wraps the 'System.String ToString()' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public new virtual string ToString()
 {
     return(WrapperUtilities.InvokeMethodAndCast <string>(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.String ToString()"), new object[] { }));
 }
Пример #13
0
 /// <summary>
 /// Wraps the 'System.Collections.IEnumerable Execute()' on the 'Microsoft.OData.Client.DataServiceQuery' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedIEnumerable Execute()
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedIEnumerable>(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.Collections.IEnumerable Execute()"), new object[] { }, BeforeEvents["System.Collections.IEnumerable Execute()"], AfterEvents["System.Collections.IEnumerable Execute()"], BeforeEventArgs["System.Collections.IEnumerable Execute()"], AfterEventArgs["System.Collections.IEnumerable Execute()"]));
 }
Пример #14
0
 /// <summary>
 /// Wraps the 'System.Collections.Generic.IEnumerator`1[Microsoft.OData.Client.OperationResponse] GetEnumerator()' on the 'Microsoft.OData.Client.DataServiceResponse' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedIEnumerator <WrappedObject> GetEnumerator()
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedIEnumerator <WrappedObject> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.Collections.Generic.IEnumerator`1[Microsoft.OData.Client.OperationResponse] GetEnumerator()"), new object[] { }));
 }
 /// <summary>
 /// Initializes static members of the WrappedQueryOperationResponse class.
 /// </summary>
 static WrappedQueryOperationResponse()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.QueryOperationResponse`1", "Microsoft.OData.Client");
 }
 /// <summary>
 /// Initializes static members of the WrappedDataServiceQueryContinuation class.
 /// </summary>
 static WrappedDataServiceQueryContinuation()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceQueryContinuation", "Microsoft.OData.Client");
 }
Пример #17
0
 /// <summary>
 /// Wraps the 'System.Collections.Generic.IEnumerator`1[TElement] GetEnumerator()' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedIEnumerator <TElement> GetEnumerator()
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedIEnumerator <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.Collections.Generic.IEnumerator`1[TElement] GetEnumerator()"), new object[] { }));
 }
Пример #18
0
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQueryContinuation`1[T] GetContinuation()' on the 'Microsoft.OData.Client.QueryOperationResponse`1' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public new virtual WrappedDataServiceQueryContinuation <T> GetContinuation()
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQueryContinuation <T> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQueryContinuation`1[T] GetContinuation()"), new object[] { }));
 }
Пример #19
0
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQuery`1[TElement] IncludeCount()' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQuery <TElement> IncludeCount()
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQuery <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQuery`1[TElement] IncludeCount()"), new object[] { }));
 }
Пример #20
0
 /// <summary>
 /// Wraps the 'Void Clear(Boolean)' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="stopTracking">The value of the 'stopTracking' parameter.</param>
 public virtual void Clear(bool stopTracking)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Clear(Boolean)"), new object[] { stopTracking });
 }
Пример #21
0
 /// <summary>
 /// Initializes static members of the WrappedDataServiceStreamLink class.
 /// </summary>
 static WrappedDataServiceStreamLink()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceStreamLink", "Microsoft.OData.Client");
 }
Пример #22
0
 /// <summary>
 /// Wraps the 'Void Load(T)' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="item">The value of the 'item' parameter.</param>
 public virtual void Load(T item)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Load(T)"), new object[] { item });
 }
Пример #23
0
 /// <summary>
 /// Initializes static members of the WrappedDataServiceCollection class.
 /// </summary>
 static WrappedDataServiceCollection()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceCollection`1", "Microsoft.OData.Client");
 }
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQueryContinuation GetContinuation(System.Collections.IEnumerable)' on the 'Microsoft.OData.Client.QueryOperationResponse' type.
 /// </summary>
 /// <param name="collection">The value of the 'collection' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQueryContinuation GetContinuation(WrappedIEnumerable collection)
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQueryContinuation>(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQueryContinuation GetContinuation(System.Collections.IEnumerable)"), new object[] { collection }));
 }
Пример #25
0
 /// <summary>
 /// Wraps the 'Void Load(System.Collections.Generic.IEnumerable`1[T])' on the 'Microsoft.OData.Client.DataServiceCollection`1' type.
 /// </summary>
 /// <param name="items">The value of the 'items' parameter.</param>
 public virtual void Load(WrappedIEnumerable <T> items)
 {
     WrapperUtilities.InvokeMethodWithoutResult(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Void Load(System.Collections.Generic.IEnumerable`1[T])"), new object[] { items });
 }
Пример #26
0
 /// <summary>
 /// Wraps the 'Microsoft.OData.Client.DataServiceQuery`1[TElement] AddQueryOption(System.String, System.Object)' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <param name="name">The value of the 'name' parameter.</param>
 /// <param name="value">The value of the 'value' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public virtual WrappedDataServiceQuery <TElement> AddQueryOption(string name, WrappedObject value)
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedDataServiceQuery <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "Microsoft.OData.Client.DataServiceQuery`1[TElement] AddQueryOption(System.String, System.Object)"), new object[] { name, value }));
 }
Пример #27
0
 /// <summary>
 /// Initializes static members of the WrappedOperationDescriptor class.
 /// </summary>
 static WrappedOperationDescriptor()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.OperationDescriptor", "Microsoft.OData.Client");
 }
Пример #28
0
 /// <summary>
 /// Wraps the 'System.IAsyncResult BeginExecute(System.AsyncCallback, System.Object)' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <param name="callback">The value of the 'callback' parameter.</param>
 /// <param name="state">The value of the 'state' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public new virtual System.IAsyncResult BeginExecute(System.AsyncCallback callback, WrappedObject state)
 {
     return(WrapperUtilities.InvokeMethodAndCast <System.IAsyncResult>(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.IAsyncResult BeginExecute(System.AsyncCallback, System.Object)"), new object[] { callback, state }));
 }
Пример #29
0
 /// <summary>
 /// Wraps the 'System.Collections.Generic.IEnumerable`1[TElement] EndExecute(System.IAsyncResult)' on the 'Microsoft.OData.Client.DataServiceQuery`1' type.
 /// </summary>
 /// <param name="asyncResult">The value of the 'asyncResult' parameter.</param>
 /// <returns>The value returned by the underlying method.</returns>
 public new virtual WrappedIEnumerable <TElement> EndExecute(System.IAsyncResult asyncResult)
 {
     return(WrapperUtilities.InvokeMethodAndWrap <WrappedIEnumerable <TElement> >(this, AstoriaWrapperUtilities.GetMethodInfo(WrappedObjectType, MethodInfoCache, "System.Collections.Generic.IEnumerable`1[TElement] EndExecute(System.IAsyncResult)"), new object[] { asyncResult }));
 }
Пример #30
0
 /// <summary>
 /// Initializes static members of the WrappedDataServiceResponse class.
 /// </summary>
 static WrappedDataServiceResponse()
 {
     WrappedObjectType = AstoriaWrapperUtilities.GetTypeFromAssembly("Microsoft.OData.Client.DataServiceResponse", "Microsoft.OData.Client");
 }