コード例 #1
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env,
                              MatchCreationInitiatorSingletonService matchCreationInitiator,
                              CustomGoogleApiAccessTokenService googleApiAccessTokenManagerService,
                              ApplicationDbContext dbContext, NpgsqlConnection npgsqlConnection)
        {
            matchCreationInitiator.StartThread();
            googleApiAccessTokenManagerService.Initialize().Wait();


            // //Заполнение данными
            new DataSeeder().Seed(dbContext);


            app.UseMvc();
        }
コード例 #2
0
 public GoogleApiPurchasesWrapperService(CustomGoogleApiAccessTokenService accessTokenService,
                                         PurchaseValidateUrlFactory purchaseValidateUrlFactory)
 {
     this.accessTokenService         = accessTokenService;
     this.purchaseValidateUrlFactory = purchaseValidateUrlFactory;
 }
コード例 #3
0
 public GoogleApiPurchaseAcknowledgeService(CustomGoogleApiAccessTokenService accessTokenService,
                                            PurchaseAcknowledgeUrlFactory factory)
 {
     this.accessTokenService = accessTokenService;
     this.factory            = factory;
 }