Exemple #1
0
 public IBlazoradeTeamsBuilder WithOptions(Action <BlazoradeTeamsOptions> config)
 {
     this.Services
     .AddSingleton((p) =>
     {
         var options = new BlazoradeTeamsOptions();
         config?.Invoke(options);
         return(options);
     })
     .AddBlazoradeMsal(this.AddMsal)
     ;
     return(this);
 }
Exemple #2
0
 public IBlazoradeTeamsBuilder WithOptions(Action <IServiceProvider, BlazoradeTeamsOptions> config)
 {
     this.Services
     .AddSingleton((p) =>
     {
         p.GetService <object>();
         var options = new BlazoradeTeamsOptions();
         config?.Invoke(p, options);
         return(options);
     })
     .AddBlazoradeMsal(this.AddMsal)
     ;
     return(this);
 }