public ServiceController( IOvernightMarginParameterContainer overnightMarginParameterContainer, IIdentityGenerator identityGenerator, ISnapshotService snapshotService) { _overnightMarginParameterContainer = overnightMarginParameterContainer; _identityGenerator = identityGenerator; _snapshotService = snapshotService; }
public OvernightMarginService( IDateService dateService, ITradingEngine tradingEngine, IAccountsCacheService accountsCacheService, IAccountUpdateService accountUpdateService, IScheduleSettingsCacheService scheduleSettingsCacheService, IOvernightMarginParameterContainer overnightMarginParameterContainer, ILog log, IEventChannel <MarginCallEventArgs> marginCallEventChannel, OvernightMarginSettings overnightMarginSettings) { _dateService = dateService; _tradingEngine = tradingEngine; _accountsCacheService = accountsCacheService; _accountUpdateService = accountUpdateService; _scheduleSettingsCacheService = scheduleSettingsCacheService; _overnightMarginParameterContainer = overnightMarginParameterContainer; _log = log; _marginCallEventChannel = marginCallEventChannel; _overnightMarginSettings = overnightMarginSettings; }