internal void AddShutdownHook(Runnable r)
        {
            ShutdownHook item = new ShutdownHook();

            item.Runnable = r;
            this.shutdownHooks.Add(item);
        }
Ejemplo n.º 2
0
    private NodeBootstrap(Tuple <IClusterSnapshotControl, ILogger> control, string nodeName)
    {
        _clusterSnapshotControl = control;

        var shutdownHook = new ShutdownHook(nodeName, control);

        shutdownHook.Register();
    }
Ejemplo n.º 3
0
        public LocalChannel(LocalServerChannel parent, LocalChannel peer) : base(parent)
        {
            _peer = peer;
            _localAddress = parent.LocalAddress;
            _remoteAddress = peer.LocalAddress;

            Configuration = new DefaultChannelConfiguration(this);
            _shutdownHook = new ShutdownHook(this);
            _readTask = new ReadTask(this);
        }
Ejemplo n.º 4
0
        public LocalChannel(LocalServerChannel parent, LocalChannel peer) : base(parent)
        {
            _peer          = peer;
            _localAddress  = parent.LocalAddress;
            _remoteAddress = peer.LocalAddress;

            Configuration = new DefaultChannelConfiguration(this);
            _shutdownHook = new ShutdownHook(this);
            _readTask     = new ReadTask(this);
        }
Ejemplo n.º 5
0
 public LocalChannel() : base(null)
 {
     Configuration = new DefaultChannelConfiguration(this);
     _shutdownHook = new ShutdownHook(this);
     _readTask = new ReadTask(this);
 }
Ejemplo n.º 6
0
 public void AddShutdownHook(Runnable r)
 {
     ShutdownHook item = new ShutdownHook ();
     item.Runnable = r;
     this.shutdownHooks.Add (item);
 }
Ejemplo n.º 7
0
 internal void AddShutdownHook(IRunnable r)
 {
     ShutdownHook item = new ShutdownHook ();
     item.Runnable = r;
     _shutdownHooks.Add (item);
 }
Ejemplo n.º 8
0
 public LocalChannel() : base(null)
 {
     Configuration = new DefaultChannelConfiguration(this);
     _shutdownHook = new ShutdownHook(this);
     _readTask     = new ReadTask(this);
 }