示例#1
0
 public static IMemberRepository GetMemberRepository() =>
 new MemberDAL(UtilityFactory.GetConfig().ConnectionString);
示例#2
0
 public static IProjectRepository GetProjectRepository() =>
 new ProjectDAL(UtilityFactory.GetConfig().ConnectionString);
示例#3
0
 public static IBusinessLogic GetGitHubListTeamMembersLogic(Type classContext, ICommandContext context, string gitHubTeamSlug) =>
 new GitHubListTeamMembersLogic(Log.Logger.ForContext(classContext), context, new GitHubClient(UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName), gitHubTeamSlug);
示例#4
0
 public static IBusinessLogic GetGitHubListOrgLogic(Type classContext, ICommandContext context) =>
 new GitHubListOrgLogic(Log.Logger.ForContext(classContext), context, new GitHubClient(UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName));
示例#5
0
 public static IBusinessLogic GetGitHubJoinOrgLogic(Type classContext, ICommandContext context, string gitHubEmail) =>
 new GitHubJoinOrgLogic(Log.Logger.ForContext(classContext), context, UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName, gitHubEmail);
示例#6
0
 public static IBusinessLogic GetHelpLogic(Type classContext, ICommandContext context) =>
 new HelpLogic(Log.Logger.ForContext(classContext), context, ModuleDetailRepository.Modules, UtilityFactory.GetConfig().Prefix);