Пример #1
0
 public DialogFactory(ICatalogService catalogService, IBasketService basketService,
                      ICatalogAIService catalogAIService, IProductSearchImageService productSearchImageService,
                      IOrderingService orderingService, IOIDCClient oidcClient,
                      IIdentityService identityService, BotSettings botSettings)
 {
     this.catalogService            = catalogService;
     this.basketService             = basketService;
     this.catalogAIService          = catalogAIService;
     this.productSearchImageService = productSearchImageService;
     this.orderingService           = orderingService;
     this.oidcClient      = oidcClient;
     this.identityService = identityService;
     this.botSettings     = botSettings;
 }
Пример #2
0
 public LoginCommand(IOIDCClient oidcClient, IIdentityService identityService, IBotToUser botToUser, IDialogTask task) : base(botToUser, task)
 {
     this.oidcClient      = oidcClient;
     this.identityService = identityService;
 }
Пример #3
0
 public LoginDialog(IOIDCClient oidcClient, IIdentityService identityService)
 {
     this.oidcClient      = oidcClient;
     this.identityService = identityService;
 }
        public static async Task <Attachment> CreateLoginCardAsync(this IActivity self, IOIDCClient oidcClient)
        {
            string authorizeUrl = await oidcClient.CreateAuthorizeUrlAsync(self);

            var cardButtons = new List <CardAction> {
                new CardAction
                {
                    Value = authorizeUrl,
                    Type  = ActionTypes.Signin,
                    Title = "Login"
                }
            };

            return(new SigninCard("LOGIN", cardButtons).ToAttachment());
        }
 public AccountController(IOIDCClient oidcClient, IBotDataRepository botDataRepository)
 {
     this.oidcClient        = oidcClient;
     this.botDataRepository = botDataRepository;
 }