예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }