WexStartupExtensions.cs 461 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.Extensions.DependencyInjection;
  7. using Wex.Sdk;
  8. namespace Hotline.Wex
  9. {
  10. public static class WexStartupExtensions
  11. {
  12. public static IServiceCollection AddWex(this IServiceCollection services, string wexAddress)
  13. {
  14. services.AddWexSdk(wexAddress);
  15. return services;
  16. }
  17. }
  18. }