public SignalSettings( SignalDefaultSyncModes defaultSyncMode, SignalMissingHandlerResponses missingHandlerDefaultResponse = SignalMissingHandlerResponses.Warn, bool autoUnsubscribeInDispose = true, bool requireStrictUnsubscribe = false) { _defaultSyncMode = defaultSyncMode; _missingHandlerDefaultResponse = missingHandlerDefaultResponse; _autoUnsubscribeInDispose = autoUnsubscribeInDispose; _requireStrictUnsubscribe = requireStrictUnsubscribe; }
public SignalDeclaration( SignalDeclarationBindInfo bindInfo, [InjectOptional] ZenjectSettings zenjectSettings) { zenjectSettings = zenjectSettings ?? ZenjectSettings.Default; _settings = zenjectSettings.Signals ?? ZenjectSettings.SignalSettings.Default; _bindingId = new BindingId(bindInfo.SignalType, bindInfo.Identifier); _missingHandlerResponses = bindInfo.MissingHandlerResponse; _isAsync = bindInfo.RunAsync; TickPriority = bindInfo.TickPriority; }
public SignalSettings( SignalDefaultSyncModes defaultSyncMode, SignalMissingHandlerResponses missingHandlerDefaultResponse = SignalMissingHandlerResponses.Warn, bool requireStrictUnsubscribe = false, // Run right after all the unspecified tick priorities so that the effects of the // signal are handled during the same frame when they are triggered int defaultAsyncTickPriority = 1) { _defaultSyncMode = defaultSyncMode; _missingHandlerDefaultResponse = missingHandlerDefaultResponse; _requireStrictUnsubscribe = requireStrictUnsubscribe; _defaultAsyncTickPriority = defaultAsyncTickPriority; }
public SignalDeclaration( Type signalType, SignalDeclarationBindInfo bindInfo, [InjectOptional] ZenjectSettings zenjectSettings) { zenjectSettings = zenjectSettings ?? ZenjectSettings.Default; _settings = zenjectSettings.Signals ?? ZenjectSettings.SignalSettings.Default; _signalType = signalType; _missingHandlerResponses = bindInfo.MissingHandlerResponse; _isAsync = bindInfo.RunAsync; TickPriority = bindInfo.TickPriority; }
// Override method to specify default arguments public new static void Install(DiContainer container, object identifier = default, CacheType cacheType = CacheType.None, SignalMissingHandlerResponses signalMissingHandlerResponses = SignalMissingHandlerResponses.Warn) { Installer <object, CacheType, SignalMissingHandlerResponses, SignalHandlerInstaller <TSignal> > .Install(container, identifier, cacheType, signalMissingHandlerResponses); }
internal SignalHandlerInstaller(object identifier, CacheType cacheType, SignalMissingHandlerResponses signalMissingHandlerResponses) { Identifier = identifier; CacheType = cacheType; SignalMissingHandlerResponses = signalMissingHandlerResponses; }
internal SignalHandlerInstaller(object identifier, CacheType cacheType, SignalMissingHandlerResponses signalMissingHandlerResponses) : base(identifier, cacheType, signalMissingHandlerResponses) { }