コード例 #1
0
 partial void OnContactInfoChanging(ContactInfo value);
コード例 #2
0
 /// <summary>
 /// Asynchronously invokes the 'UpdateContact' method of the DomainService.
 /// </summary>
 /// <param name="contact">The value for the 'contact' 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 UpdateContact(ContactInfo contact, Action<InvokeOperation> callback, object userState)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("contact", contact);
     this.ValidateMethod("UpdateContact", parameters);
     return this.InvokeOperation("UpdateContact", typeof(void), parameters, true, callback, userState);
 }
コード例 #3
0
 /// <summary>
 /// Asynchronously invokes the 'ReturnHomeAddress' method of the DomainService.
 /// </summary>
 /// <param name="contact">The value for the 'contact' parameter of this action.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation<Address> ReturnHomeAddress(ContactInfo contact)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("contact", contact);
     this.ValidateMethod("ReturnHomeAddress", parameters);
     return this.InvokeOperation<Address>("ReturnHomeAddress", typeof(Address), parameters, true, null, null);
 }
コード例 #4
0
 /// <summary>
 /// Asynchronously invokes the 'ReturnHomeAddress' method of the DomainService.
 /// </summary>
 /// <param name="contact">The value for the 'contact' 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<Address>> ReturnHomeAddressAsync(ContactInfo contact, CancellationToken cancellationToken = default(CancellationToken))
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("contact", contact);
     this.ValidateMethod("ReturnHomeAddress", parameters);
     return this.InvokeOperationAsync<Address>("ReturnHomeAddress", parameters, true, cancellationToken);
 }
コード例 #5
0
 public void UpdateContact(ContactInfo contact)
 {
     // noop
 }
コード例 #6
0
 /// <summary>
 /// Asynchronously invokes the 'UpdateContact' method of the DomainService.
 /// </summary>
 /// <param name="contact">The value for the 'contact' parameter of this action.</param>
 /// <returns>An operation instance that can be used to manage the asynchronous request.</returns>
 public InvokeOperation UpdateContact(ContactInfo contact)
 {
     Dictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.Add("contact", contact);
     this.ValidateMethod("UpdateContact", parameters);
     return this.InvokeOperation("UpdateContact", typeof(void), parameters, true, null, null);
 }
コード例 #7
0
 public IEnumerable<Phone> GetAllPhoneNumbers(ContactInfo contact)
 {
     return null;
 }
コード例 #8
0
 public Address ReturnHomeAddress(ContactInfo contact)
 {
     return contact.HomeAddress;
 }
コード例 #9
0
 // Service method taking a contact and returning a collection of addresses
 public IEnumerable<Address> Foo(ContactInfo contact)
 {
     return null;
 }
コード例 #10
0
 public Address ReturnHomeAddress(ContactInfo contact)
 {
     return(contact.HomeAddress);
 }
コード例 #11
0
 public IEnumerable <Phone> GetAllPhoneNumbers(ContactInfo contact)
 {
     return(null);
 }
コード例 #12
0
 // Service method taking a contact and returning a collection of addresses
 public IEnumerable <Address> Foo(ContactInfo contact)
 {
     return(null);
 }
コード例 #13
0
 public void UpdateContact(ContactInfo contact)
 {
     // noop
 }