public FlightRequestService(IFlightRequestRepository flightRequestRepository,
                             IUserRepository userRepository,
                             IServiceLogger logger)
 {
     _flightRequestRepository = flightRequestRepository;
     _userRepository          = userRepository;
     _logger = logger;
 }
Beispiel #2
0
        /// <summary>
        /// This is the main entry point for your service replica.
        /// This method executes when this replica of your service becomes primary and has write status.
        /// </summary>
        /// <param name="cancellationToken">Canceled when Service Fabric needs to shut down this service replica.</param>
        protected override async Task RunAsync(CancellationToken cancellationToken)
        {
            flightRequestRepository = new FlightRequestRepository(StateManager);

        }