コード例 #1
0
 public void AddWalletService(WalletService walletService)
 {
     Guard.NotNull(nameof(walletService), walletService);
     lock (WalletServicesLock)
     {
         WalletServices.Add(walletService);
     }
 }
コード例 #2
0
ファイル: Startup.cs プロジェクト: kharshitha/Pooling
 public Startup()
 {
     UserServiceObj           = new UserService();
     PoolObj                  = new Pool();
     WalletServiceObj         = new WalletServices();
     RideServiceObj           = new RideServices();
     BookingServiceObj        = new BookingService();
     PaymentServiceObj        = new PaymentService();
     ReviewServiceObj         = new ReviewService();
     RequestServiceObj        = new RequestService();
     PaymentReceiptServiceObj = new PaymentReceiptService();
     VehicleServiceObj        = new VehicleService();
     JSONOperationObj         = new JSONOperation();
     FileOperationObj         = new FileOperation();
 }
コード例 #3
0
 //private AccountServices vice_services;
 public WalletController(AppDbContext context)
 {
     this.context  = context;
     this.services = new WalletServices(context);
 }