private void InitializeTicketingProxy(bool useBridge)
        {
            string endpointName;

            if (useBridge)
            {
                endpointName = "TicketingHttpBridgeEP";
            }
            else
            {
                endpointName = "InternalTicketingEP";
            }

            ChannelFactory<ITicketingService> factory = new ChannelFactory<ITicketingService>(endpointName);
            (factory.Endpoint.Binding as WSHttpBindingBase).TransactionFlow = true;
            _ticketingProxy = factory.CreateChannel();
        }
 public CreateTicketingRecordCommandHandler(ITicketingService service, CreateTicketingRecordCommand command)
 {
     _service = service;
     _command = command;
 }
 public TicketingCommandHandlerFactory(ITicketingService service)
 {
     _service = service;
 }
Example #4
0
 public OneTicketingRecordByIdQueryHandler(ITicketingService service, OneTicketingRecordByIdQuery query)
 {
     _service = service;
     _query   = query;
 }
 public AllTicketingRecordsByEventQueryHandler(ITicketingService service, AllTicketingRecordsByEventQuery query)
 {
     _service = service;
     _query   = query;
 }
Example #6
0
 public TicketingQueryHandlerFactory(ITicketingService service)
 {
     _service = service;
 }
 public EditTicketingRecordCommandHandler(ITicketingService service, EditTicketingRecordCommand command)
 {
     _service = service;
     _command = command;
 }
Example #8
0
 public AllTicketingRecordsQueryHandler(ITicketingService service)
 {
     _service = service;
 }