コード例 #1
0
 public MessageHandler(FaderPort fp, IStateManager stateManager, IMessageFactory messageFactory)
 {
     _stateManager   = stateManager;
     _messageFactory = messageFactory;
     _fp             = fp;
 }
コード例 #2
0
 public StateManager(FaderPort fp, IEnumerable <IStateMessageHandler> handlers)
 {
     _fp       = fp;
     _handlers = handlers.ToDictionary(h => h.State, StringComparer.OrdinalIgnoreCase);
 }