void Construct(SignalManager manager, SignalSettingsOld settings, BindInfo bindInfo)
        {
            _manager = manager;

            SignalId = new BindingId(this.GetType(), bindInfo.Identifier);
            Settings = settings;
        }
Beispiel #2
0
        public static SignalBinderWithId DeclareSignalOld(this DiContainer container, Type type)
        {
            var info           = new BindInfo();
            var signalSettings = new SignalSettingsOld();

            container.Bind(type).AsCached().WithArguments(signalSettings, info);
            return(new SignalBinderWithId(info, signalSettings));
        }
Beispiel #3
0
        public static SignalBinderWithId DeclareSignalOld <T>(this DiContainer container)
            where T : ISignalBase
        {
            var signalSettings = new SignalSettingsOld();
            var binder         = container.Bind <T>().AsCached();

            binder.WithArguments(signalSettings, binder.BindInfo);
            return(new SignalBinderWithId(binder.BindInfo, signalSettings));
        }
Beispiel #4
0
 public SignalBinder(
     BindInfo bindInfo, SignalSettingsOld signalSettings)
     : base(bindInfo)
 {
     _signalSettings = signalSettings;
 }
Beispiel #5
0
 public SignalBinderWithId(
     BindInfo bindInfo, SignalSettingsOld signalSettings)
     : base(bindInfo, signalSettings)
 {
 }