Exemplo n.º 1
0
 public FlightRequestService(IFlightRequestRepository flightRequestRepository,
                             IUserRepository userRepository,
                             IServiceLogger logger)
 {
     _flightRequestRepository = flightRequestRepository;
     _userRepository          = userRepository;
     _logger = logger;
 }
Exemplo n.º 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);

        }