// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNet.Authentication.MicrosoftAccount; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.Internal; namespace Microsoft.Framework.DependencyInjection { /// /// Extension methods for using /// public static class MicrosoftAccountServiceCollectionExtensions { public static IServiceCollection ConfigureMicrosoftAccountAuthentication([NotNull] this IServiceCollection services, [NotNull] Action configure) { return services.ConfigureMicrosoftAccountAuthentication(configure, optionsName: ""); } public static IServiceCollection ConfigureMicrosoftAccountAuthentication([NotNull] this IServiceCollection services, [NotNull] Action configure, string optionsName) { return services.Configure(configure, optionsName); } public static IServiceCollection ConfigureMicrosoftAccountAuthentication([NotNull] this IServiceCollection services, [NotNull] IConfiguration config) { return services.ConfigureMicrosoftAccountAuthentication(config, optionsName: ""); } public static IServiceCollection ConfigureMicrosoftAccountAuthentication([NotNull] this IServiceCollection services, [NotNull] IConfiguration config, string optionsName) { return services.Configure(config, optionsName); } } }