Exemple #1
0
        void Construct(SignalManager manager, SignalSettings settings, BindInfo bindInfo)
        {
            _manager = manager;

            SignalId = new BindingId(this.GetType(), bindInfo.Identifier);
            Settings = settings;
        }
        public static SignalBinderWithId DeclareSignal(this DiContainer container, Type type)
        {
            var info           = new BindInfo(type);
            var signalSettings = new SignalSettings();

            container.Bind(type).AsCached().WithArguments(signalSettings, info);
            return(new SignalBinderWithId(info, signalSettings));
        }
        public static SignalBinderWithId DeclareSignal <T>(this DiContainer container)
            where T : ISignalBase
        {
            var info           = new BindInfo(typeof(T));
            var signalSettings = new SignalSettings();

            container.Bind <T>(info).AsCached().WithArguments(signalSettings, info);
            return(new SignalBinderWithId(info, signalSettings));
        }
Exemple #4
0
 public SignalBinder(
     BindInfo bindInfo, SignalSettings signalSettings)
     : base(bindInfo)
 {
     _signalSettings = signalSettings;
 }
Exemple #5
0
 public SignalBinderWithId(
     BindInfo bindInfo, SignalSettings signalSettings)
     : base(bindInfo, signalSettings)
 {
 }