Beispiel #1
0
 internal _FFMsgHandlerFactory(string key, IFFMsgTransmitter msgTransmitter, FFTgtHandlerDeviceTypes deviceType,
                               List <ExCommsExecutionStepEntity> entities, FreeformSecurityTableCollection securityTables)
 {
     _key            = key;
     _msgHandler     = new FFMsgHandler(this, deviceType, msgTransmitter);
     _entities       = entities;
     _securityTables = securityTables;
 }
 internal _FFMsgHandlerFactory(string key, IFFMsgTransmitter msgTransmitter, FFTgtHandlerDeviceTypes deviceType,
     List<ExCommsExecutionStepEntity> entities, FreeformSecurityTableCollection securityTables)
 {
     _key = key;
     _msgHandler = new FFMsgHandler(this, deviceType, msgTransmitter);
     _entities = entities;
     _securityTables = securityTables;
 }
Beispiel #3
0
 public static void Initialize(IExecutorService executorService, FFTgtHandlerDeviceTypes deviceType,
                               Func <IFFMsgTransmitter> createMessageHandler)
 {
     _currentHelper = new SingletonHelper <FFMsgHandlerFactory>(
         new Lazy <FFMsgHandlerFactory>(
             () => new FFMsgHandlerFactory(executorService, createMessageHandler)
     {
         DeviceType = deviceType,
     }));
 }
 public FFMsgHandler(_FFMsgHandlerFactory msgHandlerFactory,
                     FFTgtHandlerDeviceTypes deviceType,
                     IFFMsgTransmitter msgTransmitter)
 {
     _msgHandlerFactory       = msgHandlerFactory;
     _deviceType              = deviceType;
     _msgTransmitter          = msgTransmitter;
     _requestResponseMappings = new RequestResponseMapItems();
     _targetHandlers          = new StringDictionary <_HandlerInfo>();
     this.CreateTargetHandlers();
 }
 public FFMsgHandler(_FFMsgHandlerFactory msgHandlerFactory,
     FFTgtHandlerDeviceTypes deviceType,
     IFFMsgTransmitter msgTransmitter)
 {
     _msgHandlerFactory = msgHandlerFactory;
     _deviceType = deviceType;
     _msgTransmitter = msgTransmitter;
     _requestResponseMappings = new RequestResponseMapItems();
     _targetHandlers = new StringDictionary<_HandlerInfo>();
     this.CreateTargetHandlers();
 }
 public static void Initialize(IExecutorService executorService, FFTgtHandlerDeviceTypes deviceType,
     Func<IFFMsgTransmitter> createMessageHandler)
 {
     _currentHelper = new SingletonHelper<FFMsgHandlerFactory>(
                             new Lazy<FFMsgHandlerFactory>(
                                 () => new FFMsgHandlerFactory(executorService, createMessageHandler)
                                 {
                                     DeviceType = deviceType,
                                 }));
 }