/// <summary> /// Deletes an extension by id on a Graph User. /// </summary> /// <param name="extensionId">The id of the user extension.</param> /// <param name="userId">The id of the user.</param> /// <returns>A task upon completion.</returns> public static async Task Delete(string extensionId, string userId) { await UserExtensionsDataSource.DeleteExtension(userId, extensionId); }
/// <summary> /// Retrieves a user extension. /// </summary> /// <param name="extensionId">The id of the user extension.</param> /// <param name="userId">The id of the user.</param> /// <returns>The target extension.</returns> public static async Task<Extension> GetExtensionForUser(string extensionId, string userId) { var userExtension = await UserExtensionsDataSource.GetExtension(userId, extensionId); return userExtension; }
/// <summary> /// Creates a new roaming settings extension on a Graph User. /// </summary> /// <param name="extensionId">The id of the user extension.</param> /// <param name="userId">The id of the user.</param> /// <returns>The newly created user extension.</returns> public static async Task<Extension> Create(string extensionId, string userId) { var userExtension = await UserExtensionsDataSource.CreateExtension(userId, extensionId); return userExtension; }