コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public UserService(
     DatabaseContext dbContext,
     IIdentityProvider identityProvider,
     IGitHubUserClient gitHubUserClient,
     IGitHubOrganizationClient gitHubOrgClient,
     IGitHubTeamClient gitHubTeamClient,
     IEmailProvider emailProvider,
     ActivationToken activationToken)
 {
     _dbContext        = dbContext;
     _identityProvider = identityProvider;
     _gitHubUserClient = gitHubUserClient;
     _gitHubOrgClient  = gitHubOrgClient;
     _gitHubTeamClient = gitHubTeamClient;
     _emailProvider    = emailProvider;
     _activationToken  = activationToken;
 }
コード例 #2
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public UserService(
			DatabaseContext dbContext,
			IIdentityProvider identityProvider,
			IGitHubUserClient gitHubUserClient, 
			IGitHubOrganizationClient gitHubOrgClient,
			IGitHubTeamClient gitHubTeamClient,
			IEmailProvider emailProvider,
			ActivationToken activationToken)
		{
			_dbContext = dbContext;
			_identityProvider = identityProvider;
			_gitHubUserClient = gitHubUserClient;
			_gitHubOrgClient = gitHubOrgClient;
			_gitHubTeamClient = gitHubTeamClient;
			_emailProvider = emailProvider;
			_activationToken = activationToken;
		}
コード例 #3
0
		/// <summary>
		/// Returns a user service.
		/// </summary>
		private IUserService GetUserService(
			DatabaseContext dbContext = null,
			IIdentityProvider identityProvider = null,
			IGitHubUserClient gitHubUserClient = null,
			IGitHubOrganizationClient gitHubOrgClient = null,
			IGitHubTeamClient gitHubTeamClient = null,
			IEmailProvider emailProvider = null,
			ActivationToken activationToken = null)
		{
			return new UserService
			(
				dbContext,
				identityProvider,
				gitHubUserClient,
				gitHubOrgClient,
				gitHubTeamClient,
				emailProvider,
				activationToken
			);
		}