public MgTeam(ILogger <MgTeam> logger, Config.Backup options, IGraphClientService graphClientService, string teamid) { _Logger = logger; _Options = options; _GraphClientService = graphClientService; _TeamId = teamid; }
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; }
public MgTeamChannel(ILogger <MgTeamChannel> logger, Config.Backup options, IGraphClientService graphClientService, string teamid, string channelid) { _Logger = logger; _Options = options; _GraphClientService = graphClientService; _TeamId = teamid; _ChannelId = channelid; }
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>(); }
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> }
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; }
public TenantController(DataContext context, IGraphClientService graphSdkHelper) { _context = context; _graphSdkHelper = graphSdkHelper; }
public Notify(IConfiguration config, IGraphClientService clientService) { _config = config; _clientService = clientService; }
public GraphController(IGraphClientService graphClientService, IDiagnosticClientService diagnosticClient) { _graphClientService = graphClientService; }
public SetSubscription(IConfiguration config, IGraphClientService clientService) { _config = config; _clientService = clientService; }