예제 #1
0
 public MgTeam(ILogger <MgTeam> logger, Config.Backup options, IGraphClientService graphClientService, string teamid)
 {
     _Logger             = logger;
     _Options            = options;
     _GraphClientService = graphClientService;
     _TeamId             = teamid;
 }
예제 #2
0
 public BackupFromGraphService(ILogger <BackupFromGraphService> logger, ILogger <MgTeam> loggerMgTeam, ILogger <MgTeamChannel> loggerMgChannel, IOptions <Config.Backup> options, IGraphClientService graphClientService)
 {
     _Logger             = logger;
     _LoggerMgTeam       = loggerMgTeam;
     _LoggerMgChannel    = loggerMgChannel;
     _Options            = options.Value;
     _GraphClientService = graphClientService;
 }
예제 #3
0
 public MgTeamChannel(ILogger <MgTeamChannel> logger, Config.Backup options, IGraphClientService graphClientService, string teamid, string channelid)
 {
     _Logger             = logger;
     _Options            = options;
     _GraphClientService = graphClientService;
     _TeamId             = teamid;
     _ChannelId          = channelid;
 }
예제 #4
0
 public ApprovalController(IConfiguration config, IUserService userService, IGraphClientService graphClientService, IMailService mailService)
 {
     this.userService        = userService;
     this.graphClientService = graphClientService;
     this.mailService        = mailService;
     graphSettings           = config.GetSection("GraphApi")
                               .Get <GraphSettings>();
     appSettings = config.GetSection("AppSettings")
                   .Get <AppSettings>();
 }
예제 #5
0
        public NewEventDialog(
            IConfiguration configuration,
            IGraphClientService graphClientService)
            : base(nameof(NewEventDialog), configuration["ConnectionName"])
        {
            // <ConstructorSnippet>
            _graphClientService = graphClientService;

            // OAuthPrompt dialog handles the token
            // acquisition
            AddDialog(new OAuthPrompt(
                          nameof(OAuthPrompt),
                          new OAuthPromptSettings
            {
                ConnectionName = ConnectionName,
                Text           = "Please login",
                Title          = "Login",
                Timeout        = 300000, // User has 5 minutes to login
            }));

            AddDialog(new TextPrompt("subjectPrompt"));
            // Validator ensures that the input is a semi-colon delimited
            // list of email addresses
            AddDialog(new TextPrompt("attendeesPrompt", AttendeesPromptValidatorAsync));
            // Validator ensures that the input is a valid date and time
            AddDialog(new DateTimePrompt("startPrompt", StartPromptValidatorAsync));
            // Validator ensures that the input is a valid date and time
            // and that it is later than the start
            AddDialog(new DateTimePrompt("endPrompt", EndPromptValidatorAsync));
            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                PromptForSubjectAsync,
                PromptForAddAttendeesAsync,
                PromptForAttendeesAsync,
                PromptForStartAsync,
                PromptForEndAsync,
                ConfirmNewEventAsync,
                GetTokenAsync,
                AddEventAsync
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
            // </ConstructorSnippet>
        }
예제 #6
0
        public UserDataService(
            IHttpClientFactory httpClientFactory,
            IAuthCsroService authCsroService,
            IMapper mapper,
            IGraphClientService graphClientService,
            ITimeZoneService timeZoneService,
            IConfiguration configuration)
            : base(httpClientFactory, authCsroService, mapper, configuration, timeZoneService)
        {
            ApiPart            = "api/user/";
            Scope              = Configuration.GetValue <string>(ConstatCsro.Scopes.Scope_Auth_Api);
            ClientName         = ConstatCsro.EndPoints.ApiEndpointAuth;
            ConvertToLocalTime = true;

            base.Init();

            _graphClientService = graphClientService;
        }
        // <ConstructorSignatureSnippet>
        public MainDialog(
            IConfiguration configuration,
            ILogger <MainDialog> logger,
            IGraphClientService graphClientService)
            : base(nameof(MainDialog), configuration["ConnectionName"])
            // </ConstructorSignatureSnippet>
        {
            _logger             = logger;
            _graphClientService = graphClientService;

            // OAuthPrompt dialog handles the authentication and token
            // acquisition
            AddDialog(new OAuthPrompt(
                          nameof(OAuthPrompt),
                          new OAuthPromptSettings
            {
                ConnectionName = ConnectionName,
                Text           = "Please login",
                Title          = "Login",
                Timeout        = 300000, // User has 5 minutes to login
            }));

            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));

            AddDialog(new NewEventDialog(configuration, graphClientService));

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                LoginPromptStepAsync,
                ProcessLoginStepAsync,
                PromptUserStepAsync,
                CommandStepAsync,
                ProcessStepAsync,
                ReturnToPromptStepAsync
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
 public GetMyNewestMessage(IConfiguration config, IGraphClientService clientService)
 {
     _config        = config;
     _clientService = clientService;
 }
예제 #9
0
 public TenantController(DataContext context, IGraphClientService graphSdkHelper)
 {
     _context        = context;
     _graphSdkHelper = graphSdkHelper;
 }
예제 #10
0
 public Notify(IConfiguration config, IGraphClientService clientService)
 {
     _config        = config;
     _clientService = clientService;
 }
예제 #11
0
 public GraphController(IGraphClientService graphClientService, IDiagnosticClientService diagnosticClient)
 {
     _graphClientService = graphClientService;
 }
예제 #12
0
 public SetSubscription(IConfiguration config, IGraphClientService clientService)
 {
     _config        = config;
     _clientService = clientService;
 }