コード例 #1
0
 public UserController(IAuthTokenRepo authTokenRepo, IUserRepo userRepo,
                       GoogleCalendarService googleCalendarApi)
 {
     _authTokenRepo     = authTokenRepo;
     _googleCalendarApi = googleCalendarApi;
     _userRepo          = userRepo;
 }
コード例 #2
0
 public GoogleCalendarAPI(HttpClient client, IAuthTokenRepo authTokenRepo, UserManager <IdentityUser> userManager, IConfiguration configuration)
 {
     _client             = client;
     AuthTokenRepo       = authTokenRepo;
     UserManager         = userManager;
     _configuration      = configuration;
     _client.BaseAddress = new Uri("https://www.googleapis.com/");
 }
コード例 #3
0
 public EventsController(IAuthTokenRepo AuthTokenRepo, UserManager <IdentityUser> IdentitiyUserManager, RoleManager <IdentityRole> roleManager, GoogleCalendarAPI googleCalendarAPI, IUserEntryRepo userEntryRepo, IUserSettingsRepo userSettings)
 {
     this.AuthTokenRepo     = AuthTokenRepo;
     UserManager            = IdentitiyUserManager;
     RoleManager            = roleManager;
     this.googleCalendarAPI = googleCalendarAPI;
     this.userEntryRepo     = userEntryRepo;
     this.userSettings      = userSettings;
 }