/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='owner'> /// Required. /// </param> /// <param name='id'> /// Required. /// </param> public static object DeleteByOwnerAndId(this IRetro operations, string owner, int id) { return(Task.Factory.StartNew((object s) => { return ((IRetro)s).DeleteByOwnerAndIdAsync(owner, id); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='owner'> /// Required. /// </param> public static IList <ToDoItem> GetByOwner(this IRetro operations, string owner) { return(Task.Factory.StartNew((object s) => { return ((IRetro)s).GetByOwnerAsync(owner); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='todo'> /// Required. /// </param> public static object PutByTodo(this IRetro operations, ToDoItem todo) { return(Task.Factory.StartNew((object s) => { return ((IRetro)s).PutByTodoAsync(todo); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='owner'> /// Required. /// </param> /// <param name='id'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <ToDoItem> GetByIdByOwnerAndIdAsync(this IRetro operations, string owner, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <RetroAPI.Models.ToDoItem> result = await operations.GetByIdByOwnerAndIdWithOperationResponseAsync(owner, id, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='owner'> /// Required. /// </param> /// <param name='id'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <object> DeleteByOwnerAndIdAsync(this IRetro operations, string owner, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <object> result = await operations.DeleteByOwnerAndIdWithOperationResponseAsync(owner, id, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='todo'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <object> PutByTodoAsync(this IRetro operations, ToDoItem todo, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <object> result = await operations.PutByTodoWithOperationResponseAsync(todo, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <param name='operations'> /// Reference to the RetroAPI.IRetro. /// </param> /// <param name='owner'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <IList <ToDoItem> > GetByOwnerAsync(this IRetro operations, string owner, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <System.Collections.Generic.IList <RetroAPI.Models.ToDoItem> > result = await operations.GetByOwnerWithOperationResponseAsync(owner, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// Initializes a new instance of the RetroDataAPI class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The set of delegating handlers to insert in the http /// client pipeline. /// </param> public RetroDataAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { this._toDoList = new Retro(this); this._baseUri = new Uri("http://localhost:45914"); }
/// <summary> /// Initializes a new instance of the RetroDataAPI class. /// </summary> public RetroDataAPI() : base() { this._toDoList = new Retro(this); this._baseUri = new Uri("http://localhost:45914"); }