/// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Query operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="callback">Optional <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }

            this._asyncOperationType = AsyncOperationType.Query;
            this._domainClient = domainClient;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Query operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="callback">Optional <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }

            this._asyncOperationType = AsyncOperationType.Query;
            this._domainClient       = domainClient;
        }
        /// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Submit operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="entityChangeSet">The Submit operation <see cref="EntityChangeSet"/>.</param>
        /// <param name="callback">Optional <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, EntityChangeSet entityChangeSet, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }

            this._asyncOperationType = AsyncOperationType.Submit;
            this._domainClient = domainClient;
            this._entityChangeSet = entityChangeSet;
        }
Exemple #4
0
        /// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Submit operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="entityChangeSet">The Submit operation <see cref="EntityChangeSet"/>.</param>
        /// <param name="callback">Optional <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, EntityChangeSet entityChangeSet, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }

            this._asyncOperationType = AsyncOperationType.Submit;
            this._domainClient       = domainClient;
            this._entityChangeSet    = entityChangeSet;
        }
Exemple #5
0
        /// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Invoke operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="invokeArgs">The arguments to the Invoke operation.</param>
        /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, InvokeArgs invokeArgs, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }
            if (invokeArgs == null)
            {
                throw new ArgumentNullException("invokeArgs");
            }

            this._asyncOperationType = AsyncOperationType.Invoke;
            this._domainClient       = domainClient;
            this._invokeArgs         = invokeArgs;
        }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the EntityQuery class based on an existing "base"
 /// query. The query is constructed with the same properties as the base query
 /// using the specified IQueryable as the new query.
 /// </summary>
 /// <param name="baseQuery">The existing query.</param>
 /// <param name="query">The new query.</param>
 internal EntityQuery(EntityQuery baseQuery, IQueryable query)
 {
     if (baseQuery == null)
     {
         throw new ArgumentNullException("baseQuery");
     }
     if (query == null)
     {
         throw new ArgumentNullException("query");
     }
     this._domainClient = baseQuery._domainClient;
     this._queryName = baseQuery._queryName;
     this._entityType = baseQuery._entityType;
     this._parameters = baseQuery._parameters;
     this._hasSideEffects = baseQuery._hasSideEffects;
     this._isComposable = baseQuery._isComposable;
     this._includeTotalCount = baseQuery._includeTotalCount;
     this._query = query;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the EntityQuery class based on an existing "base"
 /// query. The query is constructed with the same properties as the base query
 /// using the specified IQueryable as the new query.
 /// </summary>
 /// <param name="baseQuery">The existing query.</param>
 /// <param name="query">The new query.</param>
 internal EntityQuery(EntityQuery baseQuery, IQueryable query)
 {
     if (baseQuery == null)
     {
         throw new ArgumentNullException("baseQuery");
     }
     if (query == null)
     {
         throw new ArgumentNullException("query");
     }
     this._domainClient      = baseQuery._domainClient;
     this._queryName         = baseQuery._queryName;
     this._entityType        = baseQuery._entityType;
     this._parameters        = baseQuery._parameters;
     this._hasSideEffects    = baseQuery._hasSideEffects;
     this._isComposable      = baseQuery._isComposable;
     this._includeTotalCount = baseQuery._includeTotalCount;
     this._query             = query;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the EntityQuery class
 /// </summary>
 /// <param name="domainClient">The <see cref="DomainClient"/> for the query.</param>
 /// <param name="queryName">The name of the query method.</param>
 /// <param name="entityType">The Type this query queries over.</param>
 /// <param name="parameters">Optional parameters to the query method. Specify null
 /// if the method takes no parameters.</param>
 /// <param name="hasSideEffects">True if the query has side-effects, false otherwise.</param>
 /// <param name="isComposable">True if the query supports composition, false otherwise.</param>
 internal EntityQuery(DomainClient domainClient, string queryName, Type entityType, IDictionary <string, object> parameters, bool hasSideEffects, bool isComposable)
 {
     if (domainClient == null)
     {
         throw new ArgumentNullException("domainClient");
     }
     if (string.IsNullOrEmpty(queryName))
     {
         throw new ArgumentNullException("queryName");
     }
     if (entityType == null)
     {
         throw new ArgumentNullException("entityType");
     }
     this._domainClient   = domainClient;
     this._queryName      = queryName;
     this._entityType     = entityType;
     this._parameters     = parameters;
     this._hasSideEffects = hasSideEffects;
     this._isComposable   = isComposable;
 }
Exemple #9
0
 /// <summary>
 /// Initializes a new instance of the EntityQuery class
 /// </summary>
 /// <param name="domainClient">The <see cref="DomainClient"/> for the query.</param>
 /// <param name="queryName">The name of the query method.</param>
 /// <param name="entityType">The Type this query queries over.</param>
 /// <param name="parameters">Optional parameters to the query method. Specify null
 /// if the method takes no parameters.</param>
 /// <param name="hasSideEffects">True if the query has side-effects, false otherwise.</param>
 /// <param name="isComposable">True if the query supports composition, false otherwise.</param>
 internal EntityQuery(DomainClient domainClient, string queryName, Type entityType, IDictionary<string, object> parameters, bool hasSideEffects, bool isComposable)
 {
     if (domainClient == null)
     {
         throw new ArgumentNullException("domainClient");
     }
     if (string.IsNullOrEmpty(queryName))
     {
         throw new ArgumentNullException("queryName");
     }
     if (entityType == null)
     {
         throw new ArgumentNullException("entityType");
     }
     this._domainClient = domainClient;
     this._queryName = queryName;
     this._entityType = entityType;
     this._parameters = parameters;
     this._hasSideEffects = hasSideEffects;
     this._isComposable = isComposable;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AssociationInheritanceScenarios"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public AssociationInheritanceScenarios(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompositionInheritanceScenarios"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public CompositionInheritanceScenarios(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExposeParentEntityDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public ExposeParentEntityDomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestProvider_Scenarios"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public TestProvider_Scenarios(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedUpdate_CustomOnly"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public NamedUpdate_CustomOnly(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 private ClientContext(DomainClient domainClient)
     : base(domainClient)
 {
     WebDomainClient<IEnvCnemcPublishDomainServiceContract> webDomainClient = (WebDomainClient<IEnvCnemcPublishDomainServiceContract>)DomainClient;
     CustomHeaderEndpointBehavior customHeaderEndpointBehavior = new CustomHeaderEndpointBehavior(this);
     webDomainClient.ChannelFactory.Endpoint.Behaviors.Add(customHeaderEndpointBehavior);
     webDomainClient.ChannelFactory.Endpoint.Binding.SendTimeout = new TimeSpan(0, 5, 0);
     webDomainClient.ChannelFactory.Endpoint.Binding.ReceiveTimeout = new TimeSpan(0, 5, 0);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LTS_Inheritance_DomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public LTS_Inheritance_DomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GlobalNamespaceTest_DomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public GlobalNamespaceTest_DomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public SystemDomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Catalog"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public Catalog(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseTypeConflicts"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public BaseTypeConflicts(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DomainServiceScenario2"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public DomainServiceScenario2(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestService_RequiresSecureEndpoint"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public TestService_RequiresSecureEndpoint(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AttributeThrowingDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public AttributeThrowingDomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
Exemple #24
0
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Submit operations.
 /// </summary>
 /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
 /// <param name="entityChangeSet">The Submit operation <see cref="EntityChangeSet"/>.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Submit operations</returns>
 public static DomainClientAsyncResult CreateSubmitResult(DomainClient domainClient, EntityChangeSet entityChangeSet, AsyncCallback callback, object asyncState)
 {
     return(new DomainClientAsyncResult(domainClient, entityChangeSet, callback, asyncState));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationService2"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public AuthenticationService2(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
        /// <summary>
        /// Initializes a new <see cref="DomainClientAsyncResult"/> instance used for Invoke operations.
        /// </summary>
        /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
        /// <param name="invokeArgs">The arguments to the Invoke operation.</param>
        /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
        /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
        /// <exception cref="ArgumentNullException">if <paramref name="domainClient"/> is null.</exception>
        protected DomainClientAsyncResult(DomainClient domainClient, InvokeArgs invokeArgs, AsyncCallback callback, object asyncState)
            : base(callback, asyncState)
        {
            if (domainClient == null)
            {
                throw new ArgumentNullException("domainClient");
            }
            if (invokeArgs == null)
            {
                throw new ArgumentNullException("invokeArgs");
            }

            this._asyncOperationType = AsyncOperationType.Invoke;
            this._domainClient = domainClient;
            this._invokeArgs = invokeArgs;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CalculatorDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public CalculatorDomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Submit operations.
 /// </summary>
 /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
 /// <param name="entityChangeSet">The Submit operation <see cref="EntityChangeSet"/>.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Submit operations</returns>
 public static DomainClientAsyncResult CreateSubmitResult(DomainClient domainClient, EntityChangeSet entityChangeSet, AsyncCallback callback, object asyncState)
 {
     return new DomainClientAsyncResult(domainClient, entityChangeSet, callback, asyncState);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedUpdate_CustomValidation"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public NamedUpdate_CustomValidation(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Query operations.
 /// </summary>
 /// <param name="domainClient">The <see cref="DomainClient"/> associated with this result.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Query operations</returns>
 public static DomainClientAsyncResult CreateQueryResult(DomainClient domainClient, AsyncCallback callback, object asyncState)
 {
     return new DomainClientAsyncResult(domainClient, callback, asyncState);
 }
Exemple #31
0
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Query operations.
 /// </summary>
 /// <param name="domainClient">The <see cref="DomainClient"/> associated with this result.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Query operations</returns>
 public static DomainClientAsyncResult CreateQueryResult(DomainClient domainClient, AsyncCallback callback, object asyncState)
 {
     return(new DomainClientAsyncResult(domainClient, callback, asyncState));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InterfaceInheritanceDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public InterfaceInheritanceDomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
Exemple #33
0
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Invoke operations.
 /// </summary>
 /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
 /// <param name="invokeArgs">The arguments to the Invoke operation.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Invoke operations</returns>
 public static DomainClientAsyncResult CreateInvokeResult(DomainClient domainClient, InvokeArgs invokeArgs, AsyncCallback callback, object asyncState)
 {
     return(new DomainClientAsyncResult(domainClient, invokeArgs, callback, asyncState));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ComplexTypes_DomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public ComplexTypes_DomainContext(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ComplexTypes_InvokeOperationsOnly"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public ComplexTypes_InvokeOperationsOnly(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Northwind"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public Northwind(DomainClient domainClient) : 
         base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerSideAsyncDomainContext"/> class with the specified <paramref name="domainClient"/>.
 /// </summary>
 /// <param name="domainClient">The DomainClient instance to use for this DomainContext.</param>
 public ServerSideAsyncDomainContext(DomainClient domainClient) :
     base(domainClient)
 {
     this.OnCreated();
 }
 /// <summary>
 /// Creates a new <see cref="DomainClientAsyncResult"/> used for Invoke operations.
 /// </summary>
 /// <param name="domainClient">The associated <see cref="DomainClient"/>.</param>
 /// <param name="invokeArgs">The arguments to the Invoke operation.</param>
 /// <param name="callback">The <see cref="AsyncCallback"/> to invoke upon completion.</param>
 /// <param name="asyncState">Optional user state information that will be passed to the <paramref name="callback"/>.</param>
 /// <returns>A <see cref="DomainClientAsyncResult"/> used for Invoke operations</returns>
 public static DomainClientAsyncResult CreateInvokeResult(DomainClient domainClient, InvokeArgs invokeArgs, AsyncCallback callback, object asyncState)
 {
     return new DomainClientAsyncResult(domainClient, invokeArgs, callback, asyncState);
 }