/// <summary>
 /// Asynchronously invokes the 'ReturnsEntity_Online' method of the DomainService.
 /// </summary>
 /// <param name="value">The value for the 'value' parameter of this action.</param>
 /// <param name="id">The value for the 'id' parameter of this action.</param>
 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public System.Threading.Tasks.Task<InvokeResult<MixedType>> ReturnsEntity_OnlineAsync(MixedType value, string id, CancellationToken cancellationToken = default(CancellationToken))
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("value", value);
     parameters.Add("id", id);
     this.ValidateMethod("ReturnsEntity_Online", parameters);
     return this.InvokeOperationAsync<MixedType>("ReturnsEntity_Online", parameters, true, cancellationToken);
 }
 /// <summary>
 /// Invokes the 'TestNullablePredefined' method of the specified <see cref="MixedType"/> entity.
 /// </summary>
 /// <param name="entity">The <see cref="MixedType"/> entity instance.</param>
 /// <param name="d">The value for the 'd' parameter for this action.</param>
 /// <param name="dt">The value for the 'dt' parameter for this action.</param>
 /// <param name="ts">The value for the 'ts' parameter for this action.</param>
 /// <param name="g">The value for the 'g' parameter for this action.</param>
 /// <param name="en">The value for the 'en' parameter for this action.</param>
 /// <param name="dto">The value for the 'dto' parameter for this action.</param>
 public void TestNullablePredefined(MixedType entity, Nullable<decimal> d, Nullable<DateTime> dt, Nullable<TimeSpan> ts, Nullable<Guid> g, Nullable<TestEnum> en, Nullable<DateTimeOffset> dto)
 {
     entity.TestNullablePredefined(d, dt, ts, g, en, dto);
 }
 /// <summary>
 /// Asynchronously invokes the 'ReturnsEntity_Online' method of the DomainService.
 /// </summary>
 /// <param name="value">The value for the 'value' parameter of this action.</param>
 /// <param name="id">The value for the 'id' parameter of this action.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation<MixedType> ReturnsEntity_Online(MixedType value, string id)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("value", value);
     parameters.Add("id", id);
     this.ValidateMethod("ReturnsEntity_Online", parameters);
     return this.InvokeOperation<MixedType>("ReturnsEntity_Online", typeof(MixedType), parameters, true, null, null);
 }
 /// <summary>
 /// Invokes the 'TestPredefined' method of the specified <see cref="MixedType"/> entity.
 /// </summary>
 /// <param name="entity">The <see cref="MixedType"/> entity instance.</param>
 /// <param name="s">The value for the 's' parameter for this action.</param>
 /// <param name="d">The value for the 'd' parameter for this action.</param>
 /// <param name="dt">The value for the 'dt' parameter for this action.</param>
 /// <param name="ts">The value for the 'ts' parameter for this action.</param>
 /// <param name="strings">The value for the 'strings' parameter for this action.</param>
 /// <param name="uri">The value for the 'uri' parameter for this action.</param>
 /// <param name="g">The value for the 'g' parameter for this action.</param>
 /// <param name="b">The value for the 'b' parameter for this action.</param>
 /// <param name="bArray">The value for the 'bArray' parameter for this action.</param>
 /// <param name="en">The value for the 'en' parameter for this action.</param>
 /// <param name="dictionary">The value for the 'dictionary' parameter for this action.</param>
 /// <param name="dto">The value for the 'dto' parameter for this action.</param>
 public void TestPredefined(MixedType entity, string s, decimal d, DateTime dt, TimeSpan ts, IEnumerable<string> strings, Uri uri, Guid g, byte[] b, byte[] bArray, TestEnum en, Dictionary<string, string> dictionary, DateTimeOffset dto)
 {
     entity.TestPredefined(s, d, dt, ts, strings, uri, g, b, bArray, en, dictionary, dto);
 }
 /// <summary>
 /// Invokes the 'TestNullablePrimitive' method of the specified <see cref="MixedType"/> entity.
 /// </summary>
 /// <param name="entity">The <see cref="MixedType"/> entity instance.</param>
 /// <param name="b1">The value for the 'b1' parameter for this action.</param>
 /// <param name="b2">The value for the 'b2' parameter for this action.</param>
 /// <param name="sb">The value for the 'sb' parameter for this action.</param>
 /// <param name="int16">The value for the 'int16' parameter for this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter for this action.</param>
 /// <param name="int32">The value for the 'int32' parameter for this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter for this action.</param>
 /// <param name="int64">The value for the 'int64' parameter for this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter for this action.</param>
 /// <param name="ch">The value for the 'ch' parameter for this action.</param>
 /// <param name="d">The value for the 'd' parameter for this action.</param>
 /// <param name="s">The value for the 's' parameter for this action.</param>
 public void TestNullablePrimitive(MixedType entity, Nullable<bool> b1, Nullable<byte> b2, Nullable<sbyte> sb, Nullable<short> int16, Nullable<ushort> uint16, Nullable<int> int32, Nullable<uint> uint32, Nullable<long> int64, Nullable<ulong> uint64, Nullable<char> ch, Nullable<double> d, Nullable<float> s)
 {
     entity.TestNullablePrimitive(b1, b2, sb, int16, uint16, int32, uint32, int64, uint64, ch, d, s);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestPrimitive_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="b1">The value for the 'b1' parameter of this action.</param>
 /// <param name="b2">The value for the 'b2' parameter of this action.</param>
 /// <param name="sb">The value for the 'sb' parameter of this action.</param>
 /// <param name="int16">The value for the 'int16' parameter of this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter of this action.</param>
 /// <param name="int32">The value for the 'int32' parameter of this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter of this action.</param>
 /// <param name="int64">The value for the 'int64' parameter of this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter of this action.</param>
 /// <param name="ch">The value for the 'ch' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public System.Threading.Tasks.Task<InvokeResult<bool>> TestPrimitive_OnlineAsync(MixedType entity, bool b1, byte b2, sbyte sb, short int16, ushort uint16, int int32, uint uint32, long int64, ulong uint64, char ch, double d, float s, CancellationToken cancellationToken = default(CancellationToken))
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("b1", b1);
     parameters.Add("b2", b2);
     parameters.Add("sb", sb);
     parameters.Add("int16", int16);
     parameters.Add("uint16", uint16);
     parameters.Add("int32", int32);
     parameters.Add("uint32", uint32);
     parameters.Add("int64", int64);
     parameters.Add("uint64", uint64);
     parameters.Add("ch", ch);
     parameters.Add("d", d);
     parameters.Add("s", s);
     this.ValidateMethod("TestPrimitive_Online", parameters);
     return this.InvokeOperationAsync<bool>("TestPrimitive_Online", parameters, true, cancellationToken);
 }
 /// <summary>
 /// Invokes the 'TestPrimitive' method of the specified <see cref="MixedType"/> entity.
 /// </summary>
 /// <param name="entity">The <see cref="MixedType"/> entity instance.</param>
 /// <param name="b1">The value for the 'b1' parameter for this action.</param>
 /// <param name="b2">The value for the 'b2' parameter for this action.</param>
 /// <param name="sb">The value for the 'sb' parameter for this action.</param>
 /// <param name="int16">The value for the 'int16' parameter for this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter for this action.</param>
 /// <param name="int32">The value for the 'int32' parameter for this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter for this action.</param>
 /// <param name="int64">The value for the 'int64' parameter for this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter for this action.</param>
 /// <param name="ch">The value for the 'ch' parameter for this action.</param>
 /// <param name="d">The value for the 'd' parameter for this action.</param>
 /// <param name="s">The value for the 's' parameter for this action.</param>
 public void TestPrimitive(MixedType entity, bool b1, byte b2, sbyte sb, short int16, ushort uint16, int int32, uint uint32, long int64, ulong uint64, char ch, double d, float s)
 {
     entity.TestPrimitive(b1, b2, sb, int16, uint16, int32, uint32, int64, uint64, ch, d, s);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestPrimitive_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="b1">The value for the 'b1' parameter of this action.</param>
 /// <param name="b2">The value for the 'b2' parameter of this action.</param>
 /// <param name="sb">The value for the 'sb' parameter of this action.</param>
 /// <param name="int16">The value for the 'int16' parameter of this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter of this action.</param>
 /// <param name="int32">The value for the 'int32' parameter of this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter of this action.</param>
 /// <param name="int64">The value for the 'int64' parameter of this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter of this action.</param>
 /// <param name="ch">The value for the 'ch' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation<bool> TestPrimitive_Online(MixedType entity, bool b1, byte b2, sbyte sb, short int16, ushort uint16, int int32, uint uint32, long int64, ulong uint64, char ch, double d, float s)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("b1", b1);
     parameters.Add("b2", b2);
     parameters.Add("sb", sb);
     parameters.Add("int16", int16);
     parameters.Add("uint16", uint16);
     parameters.Add("int32", int32);
     parameters.Add("uint32", uint32);
     parameters.Add("int64", int64);
     parameters.Add("uint64", uint64);
     parameters.Add("ch", ch);
     parameters.Add("d", d);
     parameters.Add("s", s);
     this.ValidateMethod("TestPrimitive_Online", parameters);
     return this.InvokeOperation<bool>("TestPrimitive_Online", typeof(bool), parameters, true, null, null);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestPredefined_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="dt">The value for the 'dt' parameter of this action.</param>
 /// <param name="ts">The value for the 'ts' parameter of this action.</param>
 /// <param name="strings">The value for the 'strings' parameter of this action.</param>
 /// <param name="uri">The value for the 'uri' parameter of this action.</param>
 /// <param name="g">The value for the 'g' parameter of this action.</param>
 /// <param name="b">The value for the 'b' parameter of this action.</param>
 /// <param name="x">The value for the 'x' parameter of this action.</param>
 /// <param name="bArray">The value for the 'bArray' parameter of this action.</param>
 /// <param name="en">The value for the 'en' parameter of this action.</param>
 /// <param name="guids">The value for the 'guids' parameter of this action.</param>
 /// <param name="ulongs">The value for the 'ulongs' parameter of this action.</param>
 /// <param name="dto">The value for the 'dto' parameter of this action.</param>
 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public System.Threading.Tasks.Task<InvokeResult<bool>> TestPredefined_OnlineAsync(
             MixedType entity, 
             string s, 
             decimal d, 
             DateTime dt, 
             TimeSpan ts, 
             IEnumerable<string> strings, 
             Uri uri, 
             Guid g, 
             byte[] b, 
             XElement x, 
             byte[] bArray, 
             TestEnum en, 
             Guid[] guids, 
             ulong[] ulongs, 
             DateTimeOffset dto, 
             CancellationToken cancellationToken = default(CancellationToken))
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("s", s);
     parameters.Add("d", d);
     parameters.Add("dt", dt);
     parameters.Add("ts", ts);
     parameters.Add("strings", strings);
     parameters.Add("uri", uri);
     parameters.Add("g", g);
     parameters.Add("b", b);
     parameters.Add("x", x);
     parameters.Add("bArray", bArray);
     parameters.Add("en", en);
     parameters.Add("guids", guids);
     parameters.Add("ulongs", ulongs);
     parameters.Add("dto", dto);
     this.ValidateMethod("TestPredefined_Online", parameters);
     return this.InvokeOperationAsync<bool>("TestPredefined_Online", parameters, true, cancellationToken);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestPredefined_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="dt">The value for the 'dt' parameter of this action.</param>
 /// <param name="ts">The value for the 'ts' parameter of this action.</param>
 /// <param name="strings">The value for the 'strings' parameter of this action.</param>
 /// <param name="uri">The value for the 'uri' parameter of this action.</param>
 /// <param name="g">The value for the 'g' parameter of this action.</param>
 /// <param name="b">The value for the 'b' parameter of this action.</param>
 /// <param name="x">The value for the 'x' parameter of this action.</param>
 /// <param name="bArray">The value for the 'bArray' parameter of this action.</param>
 /// <param name="en">The value for the 'en' parameter of this action.</param>
 /// <param name="guids">The value for the 'guids' parameter of this action.</param>
 /// <param name="ulongs">The value for the 'ulongs' parameter of this action.</param>
 /// <param name="dto">The value for the 'dto' parameter of this action.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation<bool> TestPredefined_Online(MixedType entity, string s, decimal d, DateTime dt, TimeSpan ts, IEnumerable<string> strings, Uri uri, Guid g, byte[] b, XElement x, byte[] bArray, TestEnum en, Guid[] guids, ulong[] ulongs, DateTimeOffset dto)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("s", s);
     parameters.Add("d", d);
     parameters.Add("dt", dt);
     parameters.Add("ts", ts);
     parameters.Add("strings", strings);
     parameters.Add("uri", uri);
     parameters.Add("g", g);
     parameters.Add("b", b);
     parameters.Add("x", x);
     parameters.Add("bArray", bArray);
     parameters.Add("en", en);
     parameters.Add("guids", guids);
     parameters.Add("ulongs", ulongs);
     parameters.Add("dto", dto);
     this.ValidateMethod("TestPredefined_Online", parameters);
     return this.InvokeOperation<bool>("TestPredefined_Online", typeof(bool), parameters, true, null, null);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestNullable_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="b1">The value for the 'b1' parameter of this action.</param>
 /// <param name="b2">The value for the 'b2' parameter of this action.</param>
 /// <param name="sb">The value for the 'sb' parameter of this action.</param>
 /// <param name="int16">The value for the 'int16' parameter of this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter of this action.</param>
 /// <param name="int32">The value for the 'int32' parameter of this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter of this action.</param>
 /// <param name="int64">The value for the 'int64' parameter of this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter of this action.</param>
 /// <param name="ch">The value for the 'ch' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <param name="dec">The value for the 'dec' parameter of this action.</param>
 /// <param name="dt">The value for the 'dt' parameter of this action.</param>
 /// <param name="ts">The value for the 'ts' parameter of this action.</param>
 /// <param name="g">The value for the 'g' parameter of this action.</param>
 /// <param name="en">The value for the 'en' parameter of this action.</param>
 /// <param name="nullableTimeSpans">The value for the 'nullableTimeSpans' parameter of this action.</param>
 /// <param name="dto">The value for the 'dto' parameter of this action.</param>
 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public System.Threading.Tasks.Task<InvokeResult<bool>> TestNullable_OnlineAsync(
             MixedType entity, 
             Nullable<bool> b1, 
             Nullable<byte> b2, 
             Nullable<sbyte> sb, 
             Nullable<short> int16, 
             Nullable<ushort> uint16, 
             Nullable<int> int32, 
             Nullable<uint> uint32, 
             Nullable<long> int64, 
             Nullable<ulong> uint64, 
             Nullable<char> ch, 
             Nullable<double> d, 
             Nullable<float> s, 
             Nullable<decimal> dec, 
             Nullable<DateTime> dt, 
             Nullable<TimeSpan> ts, 
             Nullable<Guid> g, 
             Nullable<TestEnum> en, 
             IEnumerable<Nullable<TimeSpan>> nullableTimeSpans, 
             Nullable<DateTimeOffset> dto, 
             CancellationToken cancellationToken = default(CancellationToken))
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("b1", b1);
     parameters.Add("b2", b2);
     parameters.Add("sb", sb);
     parameters.Add("int16", int16);
     parameters.Add("uint16", uint16);
     parameters.Add("int32", int32);
     parameters.Add("uint32", uint32);
     parameters.Add("int64", int64);
     parameters.Add("uint64", uint64);
     parameters.Add("ch", ch);
     parameters.Add("d", d);
     parameters.Add("s", s);
     parameters.Add("dec", dec);
     parameters.Add("dt", dt);
     parameters.Add("ts", ts);
     parameters.Add("g", g);
     parameters.Add("en", en);
     parameters.Add("nullableTimeSpans", nullableTimeSpans);
     parameters.Add("dto", dto);
     this.ValidateMethod("TestNullable_Online", parameters);
     return this.InvokeOperationAsync<bool>("TestNullable_Online", parameters, true, cancellationToken);
 }
 /// <summary>
 /// Asynchronously invokes the 'TestNullable_Online' method of the DomainService.
 /// </summary>
 /// <param name="entity">The value for the 'entity' parameter of this action.</param>
 /// <param name="b1">The value for the 'b1' parameter of this action.</param>
 /// <param name="b2">The value for the 'b2' parameter of this action.</param>
 /// <param name="sb">The value for the 'sb' parameter of this action.</param>
 /// <param name="int16">The value for the 'int16' parameter of this action.</param>
 /// <param name="uint16">The value for the 'uint16' parameter of this action.</param>
 /// <param name="int32">The value for the 'int32' parameter of this action.</param>
 /// <param name="uint32">The value for the 'uint32' parameter of this action.</param>
 /// <param name="int64">The value for the 'int64' parameter of this action.</param>
 /// <param name="uint64">The value for the 'uint64' parameter of this action.</param>
 /// <param name="ch">The value for the 'ch' parameter of this action.</param>
 /// <param name="d">The value for the 'd' parameter of this action.</param>
 /// <param name="s">The value for the 's' parameter of this action.</param>
 /// <param name="dec">The value for the 'dec' parameter of this action.</param>
 /// <param name="dt">The value for the 'dt' parameter of this action.</param>
 /// <param name="ts">The value for the 'ts' parameter of this action.</param>
 /// <param name="g">The value for the 'g' parameter of this action.</param>
 /// <param name="en">The value for the 'en' parameter of this action.</param>
 /// <param name="nullableTimeSpans">The value for the 'nullableTimeSpans' parameter of this action.</param>
 /// <param name="dto">The value for the 'dto' parameter of this action.</param>
 /// <param name="callback">Callback to invoke when the operation completes.</param>
 /// <param name="userState">Value to pass to the callback.  It can be <c>null</c>.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation<bool> TestNullable_Online(
             MixedType entity, 
             Nullable<bool> b1, 
             Nullable<byte> b2, 
             Nullable<sbyte> sb, 
             Nullable<short> int16, 
             Nullable<ushort> uint16, 
             Nullable<int> int32, 
             Nullable<uint> uint32, 
             Nullable<long> int64, 
             Nullable<ulong> uint64, 
             Nullable<char> ch, 
             Nullable<double> d, 
             Nullable<float> s, 
             Nullable<decimal> dec, 
             Nullable<DateTime> dt, 
             Nullable<TimeSpan> ts, 
             Nullable<Guid> g, 
             Nullable<TestEnum> en, 
             IEnumerable<Nullable<TimeSpan>> nullableTimeSpans, 
             Nullable<DateTimeOffset> dto, 
             Action<InvokeOperation<bool>> callback, 
             object userState)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("entity", entity);
     parameters.Add("b1", b1);
     parameters.Add("b2", b2);
     parameters.Add("sb", sb);
     parameters.Add("int16", int16);
     parameters.Add("uint16", uint16);
     parameters.Add("int32", int32);
     parameters.Add("uint32", uint32);
     parameters.Add("int64", int64);
     parameters.Add("uint64", uint64);
     parameters.Add("ch", ch);
     parameters.Add("d", d);
     parameters.Add("s", s);
     parameters.Add("dec", dec);
     parameters.Add("dt", dt);
     parameters.Add("ts", ts);
     parameters.Add("g", g);
     parameters.Add("en", en);
     parameters.Add("nullableTimeSpans", nullableTimeSpans);
     parameters.Add("dto", dto);
     this.ValidateMethod("TestNullable_Online", parameters);
     return this.InvokeOperation<bool>("TestNullable_Online", typeof(bool), parameters, true, callback, userState);
 }