public HandleAndLogErrorAttribute( IErrorHandlerService ErrorHandlerService )
 {
     if ( ErrorHandlerService == null ) {
         throw new ArgumentNullException( "ErrorHandlerService" );
     }
     this.errorHandlerService = ErrorHandlerService;
 }
Beispiel #2
0
 public LogManager()
 {
     _errorHandlerService = new ErrorHandlerService();
     _gngLoggerService    = new LoggerService();
     configurations       = new Configurations();
     logFileName          = DateTime.UtcNow.ToString(configurations.GetDateTimeFormat()) + configurations.GetLogExtention();
 }
        public GHServiceBase(IErrorHandlerService errorHandler, IHttpRequestService httpRequest)
        {
            _errorHandler = errorHandler;
            _httpRequest  = httpRequest;

            Accept_V3_Json = new KeyValuePair <string, string>("Accept", "application/vnd.github.v3+json");
        }
Beispiel #4
0
        public ThreadServiceBase(IErrorHandlerService errorHandler, IHttpRequestService httpRequest)
        {
            _errorHandler = errorHandler;
            _httpRequest  = httpRequest;

            Accept_Json = new KeyValuePair <string, string>("Accept", "application/json");
        }
Beispiel #5
0
        public HerokuServiceBase(IErrorHandlerService errorHandler, IHttpRequestService httpRequest)
        {
            _errorHandler = errorHandler;
            _httpRequest  = httpRequest;

            Accept_Json_V3 = new KeyValuePair <string, string>("Accept", "application/vnd.heroku+json; version=3");
            Accept_Json_V4 = new KeyValuePair <string, string>("Accept", "application/vnd.heroku+json; version=4");
        }
Beispiel #6
0
 public OrdersController(IStripeChargesService stripeChargesService, IStripeService stripeService, IConfiguration config, ILogger <OrdersController> logger, IOrderService orderService, IErrorHandlerService errorService)
 {
     _config               = config;
     _logger               = logger;
     _stripeService        = stripeService;
     _orderService         = orderService; _errorService = errorService;
     _stripeChargesService = stripeChargesService;
 }
Beispiel #7
0
 public CleanSolutionCommandBase(IProjectFolderSerivce projectFolderService,
                                 IErrorHandlerService errorHandlerService,
                                 IVsOutputPaneService vsOutputPaneService,
                                 OleMenuCommandService commandService,
                                 bool deletePackages,
                                 Guid packageCmdSet,
                                 int commandId) :
     base(projectFolderService, errorHandlerService, vsOutputPaneService, commandService, packageCmdSet, commandId)
 {
     this.deletePackages = deletePackages;
 }
Beispiel #8
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            projectFolderService = new ProjectFolderSerivce((DTE2)GetGlobalService(typeof(SDTE)));
            errorHandlerService  = new ErrorHandlerService((IVsOutputWindowPane)await GetServiceAsync(typeof(SVsGeneralOutputWindowPane)));
            OleMenuCommandService commandService = await this.GetServiceAsync((typeof(IMenuCommandService))) as OleMenuCommandService;

            new CleanSolutionCommand(projectFolderService, errorHandlerService, commandService);
            new CleanProjectCommand(projectFolderService, errorHandlerService, commandService);
        }
Beispiel #9
0
 public PaymentsController(IStripeChargesService stripeChargesService, IStripeCustomerService stripeCustomerService, IUserService userService, ICompanyService companyService, IStripeService stripeService, IConfiguration config, ILogger <PaymentsController> logger, IErrorHandlerService errorService, IOrderService orderService)
 {
     _config                = config;
     _logger                = logger;
     _errorService          = errorService;
     _orderService          = orderService;
     _stripeService         = stripeService;
     _companyService        = companyService;
     _userService           = userService;
     _stripeCustomerService = stripeCustomerService;
     _stripeChargesService  = stripeChargesService;
 }
        protected CleanCommandBase(IProjectFolderSerivce projectFolderService,
                                   IErrorHandlerService errorHandlerService,
                                   OleMenuCommandService commandService, Guid guidPackageCmdSet, int commandId)
        {
            if (commandService == null)
            {
                throw new ArgumentNullException(nameof(commandService));
            }
            this.projectFolderService = projectFolderService ?? throw new ArgumentNullException(nameof(projectFolderService));
            this.errorHandlerService  = errorHandlerService ?? throw new ArgumentNullException(nameof(errorHandlerService));
            var menuCommandID = new CommandID(guidPackageCmdSet, commandId);
            var menuItem      = new MenuCommand(this.Execute, menuCommandID);

            commandService.AddCommand(menuItem);
        }
Beispiel #11
0
 public JwtAuthService(IErrorHandlerService errorHandler) : base(errorHandler)
 {
 }
 public ReportService(IContext <Project> project, IContext <ProjectType> projectType, IContext <Test> test, IContext <Workflow> workflow, IContext <Pipeline> pipeline, IContext <Submission> submission, IContext <Commit> commit, IContext <Data.Models.Task> task, IContext <TaskSubmission> report, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _project     = project;
     _projectType = projectType;
     _test        = test;
     _workflow    = workflow;
     _pipeline    = pipeline;
     _submission  = submission;
     _commit      = commit;
     _task        = task;
     _report      = report;
 }
Beispiel #13
0
 public CommitsController(ICommitService commit, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _commit = commit;
 }
 public CircleCIConfigurationService(IErrorHandlerService errorHandler, IHttpRequestService httpRequest) : base(errorHandler, httpRequest)
 {
 }
 public ProjectTypeService(IContext <ProjectType> projectType, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _projectType = projectType;
 }
 public ConfigurationFileService(IErrorHandlerService errorHandler) : base(errorHandler)
 {
 }
 public CleanSolutionWithoutPackagesCommand(IProjectFolderSerivce projectFolderService, IErrorHandlerService errorHandlerService, IVsOutputPaneService vsOutputPaneService, OleMenuCommandService commandService) :
     base(projectFolderService, errorHandlerService, vsOutputPaneService, commandService, deletePackages: false, PackageGuids.guidCleanSolutionWithoutPackagesCommandPackageCmdSet, PackageIds.CleanSolutionWithoutPackagesCommandId)
 {
 }
 public ProjectsController(IJwtAuthService jwtAuth, IProjectService project, IErrorHandlerService errorHandler)
 {
     _jwtAuth      = jwtAuth;
     _project      = project;
     _errorHandler = errorHandler;
 }
 public ConfigurationService(IContext <Step> step, IContext <ResourceClass> resourceClass, IContext <ExecutorImage> executorImage, IContext <Tool> tool, IContext <Executor> executor, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _step          = step;
     _resourceClass = resourceClass;
     _executorImage = executorImage;
     _tool          = tool;
     _executor      = executor;
 }
 public HerokuAppService(IErrorHandlerService errorHandler, IHttpRequestService httpRequest) : base(errorHandler, httpRequest)
 {
 }
Beispiel #21
0
 public WorkflowThreadService(IErrorHandlerService errorHandler, IHttpRequestService httpRequest) : base(errorHandler, httpRequest)
 {
 }
 public ProjectsController(IConfigurationFileService configurationFile, IGHInvitationService gHInvitation, IGHCollaboratorService gHCollaborator, IRepositoryService repository, IProjectRepositoryService projectRepository, ICollaboratorService collaborator, IPermissionService permission, IAccountService account, IProjectService project, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _configurationFile = configurationFile;
     _gHInvitation      = gHInvitation;
     _gHCollaborator    = gHCollaborator;
     _repository        = repository;
     _projectRepository = projectRepository;
     _collaborator      = collaborator;
     _permission        = permission;
     _account           = account;
     _project           = project;
 }
Beispiel #23
0
 public RepositoriesController(IProjectRepositoryService projectRepository, IProjectService project, IPermissionService permission, IBranchService branch, IGHReferenceService gHReference, IGHWebhookService gHWebhook, IGHBranchService gHBranch, IGHRepositoryService gHRepository, IRepositoryService repository, IAccountService account, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _projectRepository = projectRepository;
     _project           = project;
     _permission        = permission;
     _branch            = branch;
     _gHReference       = gHReference;
     _gHWebhook         = gHWebhook;
     _gHBranch          = gHBranch;
     _gHRepository      = gHRepository;
     _repository        = repository;
     _account           = account;
 }
 public LanguageService(IContext <ProjectFramework> projectFramework, IContext <Framework> framework, IContext <Language> language, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _projectFramework = projectFramework;
     _framework        = framework;
     _language         = language;
 }
Beispiel #25
0
 public UserFilter(IUserService user, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth)
 {
     _user         = user;
     _errorHandler = errorHandler;
     _jwtAuth      = jwtAuth;
 }
 public GHInvitationService(IErrorHandlerService errorHandler, IHttpRequestService httpRequest) : base(errorHandler, httpRequest)
 {
 }
 public TokensController(ITokenService token, IAccountService account, IPermissionService permission, IConfigurationFileService configurationFile, IProjectToolService projectTool, ICircleCIUserService circleCIUser, IHerokuAccountService herokuAccount, IHerokuAppService herokuApp, IHerokuRegionService herokuRegion, IHerokuStackService herokuStack, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _token             = token;
     _account           = account;
     _permission        = permission;
     _configurationFile = configurationFile;
     _projectTool       = projectTool;
     _circleCIUser      = circleCIUser;
     _herokuAccount     = herokuAccount;
     _herokuApp         = herokuApp;
     _herokuRegion      = herokuRegion;
     _herokuStack       = herokuStack;
 }
 public ProjectTypesController(IProjectTypeService projectType, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _projectType = projectType;
 }
 public WorkflowService(IContext <Tool> tool, IContext <Workflow> workflow, IContext <Pipeline> pipeline, IContext <Sprint> sprint, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _tool     = tool;
     _workflow = workflow;
     _pipeline = pipeline;
     _sprint   = sprint;
 }
 public FrameworkService(IContext <Language> language, IContext <Framework> framework, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _language  = language;
     _framework = framework;
 }
Beispiel #31
0
 public ProjectToolService(IContext <Project> project, IContext <Tool> tool, IContext <ProjectTool> projectTool, IErrorHandlerService errorHandler) : base(errorHandler)
 {
     _project     = project;
     _tool        = tool;
     _projectTool = projectTool;
 }