partial void OnContactInfoChanging(ContactInfo value);
/// <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); }
/// <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); }
/// <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); }
public void UpdateContact(ContactInfo contact) { // noop }
/// <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); }
public IEnumerable<Phone> GetAllPhoneNumbers(ContactInfo contact) { return null; }
public Address ReturnHomeAddress(ContactInfo contact) { return contact.HomeAddress; }
// Service method taking a contact and returning a collection of addresses public IEnumerable<Address> Foo(ContactInfo contact) { return null; }
public Address ReturnHomeAddress(ContactInfo contact) { return(contact.HomeAddress); }
public IEnumerable <Phone> GetAllPhoneNumbers(ContactInfo contact) { return(null); }
// Service method taking a contact and returning a collection of addresses public IEnumerable <Address> Foo(ContactInfo contact) { return(null); }