private void Construct(SignalManager manager, SignalSettings settings, BindInfo bindInfo) { _manager = manager; SignalId = new BindingId(this.GetType(), bindInfo.Identifier); Settings = settings; }
static LibUtils() { HttpClient = new HttpClient(); AppConfig = new AppConfig(); SignalSettings = AppConfig.GetSignalSettings(); ServiceUrls = new SignalServiceUrl[] { new SignalServiceUrl(SignalSettings.ServiceUrl) }; Cdn1Urls = new SignalCdnUrl[] { new SignalCdnUrl(SignalSettings.Cdn1Urls[0]) }; Cdn2Urls = new SignalCdnUrl[] { new SignalCdnUrl(SignalSettings.Cdn2Urls[0]) }; ContactDiscoveryUrls = new SignalContactDiscoveryUrl[] { new SignalContactDiscoveryUrl(SignalSettings.ContactDiscoveryServiceUrl) }; ServiceConfiguration = new SignalServiceConfiguration(ServiceUrls, Cdn1Urls, Cdn2Urls, ContactDiscoveryUrls); }
public ZenjectSettings( ValidationErrorResponses validationErrorResponse, RootResolveMethods validationRootResolveMethod = RootResolveMethods.NonLazyOnly, bool displayWarningWhenResolvingDuringInstall = true, bool ensureDeterministicDestructionOrderOnApplicationQuit = false, SignalSettings signalSettings = null) { _validationErrorResponse = validationErrorResponse; _validationRootResolveMethod = validationRootResolveMethod; _displayWarningWhenResolvingDuringInstall = displayWarningWhenResolvingDuringInstall; _ensureDeterministicDestructionOrderOnApplicationQuit = ensureDeterministicDestructionOrderOnApplicationQuit; _signalSettings = signalSettings ?? SignalSettings.Default; }
public UniDiSettings( ValidationErrorResponses validationErrorResponse, RootResolveMethods validationRootResolveMethod = RootResolveMethods.NonLazyOnly, bool displayWarningWhenResolvingDuringInstall = true, bool ensureDeterministicDestructionOrderOnApplicationQuit = false, SignalSettings signalSettings = null, ConstructorChoiceStrategy constructorChoiceStrategy = ConstructorChoiceStrategy.InjectAttributeThenLeastArguments) { _validationErrorResponse = validationErrorResponse; _validationRootResolveMethod = validationRootResolveMethod; _displayWarningWhenResolvingDuringInstall = displayWarningWhenResolvingDuringInstall; _ensureDeterministicDestructionOrderOnApplicationQuit = ensureDeterministicDestructionOrderOnApplicationQuit; _signalSettings = signalSettings ?? SignalSettings.Default; _constructorChoiceStrategy = constructorChoiceStrategy; }
public ScriptingSetupViewModel(IApplicationCore c, ScriptingType type) { Core = c; _scriptingType = type; switch (_scriptingType) { case ScriptingType.Signal: Settings = new SignalSettings(); break; case ScriptingType.Indicator: Settings = new IndicatorSettings(); break; } Title = $"{Settings.ScriptType} Setup"; OkCommand = new RelayCommand(OkCommandExecute); CancelCommand = new RelayCommand(CancelCommandExecute); RemoveParameterCommand = new RelayCommand <ScriptingParameter>(RemoveParameterExecute); AddSeriesCommand = new RelayCommand(AddSeriesCommandExecute); RemoveSeriesCommand = new RelayCommand <SeriesSettings>(RemoveSeriesCommandExecute); }
public SignalBinder( BindInfo bindInfo, SignalSettings signalSettings) : base(bindInfo) { _signalSettings = signalSettings; }
public SignalBinderWithId( BindInfo bindInfo, SignalSettings signalSettings) : base(bindInfo, signalSettings) { }