コード例 #1
0
        internal void AddShutdownHook(Runnable r)
        {
            ShutdownHook item = new ShutdownHook();

            item.Runnable = r;
            this.shutdownHooks.Add(item);
        }
コード例 #2
0
    private NodeBootstrap(Tuple <IClusterSnapshotControl, ILogger> control, string nodeName)
    {
        _clusterSnapshotControl = control;

        var shutdownHook = new ShutdownHook(nodeName, control);

        shutdownHook.Register();
    }
コード例 #3
0
ファイル: LocalChannel.cs プロジェクト: helios-io/helios
        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);
        }
コード例 #4
0
ファイル: LocalChannel.cs プロジェクト: zhangrl/helios
        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);
        }
コード例 #5
0
ファイル: LocalChannel.cs プロジェクト: helios-io/helios
 public LocalChannel() : base(null)
 {
     Configuration = new DefaultChannelConfiguration(this);
     _shutdownHook = new ShutdownHook(this);
     _readTask = new ReadTask(this);
 }
コード例 #6
0
ファイル: Runtime.cs プロジェクト: dprothero/ngit
 public void AddShutdownHook(Runnable r)
 {
     ShutdownHook item = new ShutdownHook ();
     item.Runnable = r;
     this.shutdownHooks.Add (item);
 }
コード例 #7
0
ファイル: Runtime.cs プロジェクト: istupakov/SharpCifs
 internal void AddShutdownHook(IRunnable r)
 {
     ShutdownHook item = new ShutdownHook ();
     item.Runnable = r;
     _shutdownHooks.Add (item);
 }
コード例 #8
0
ファイル: LocalChannel.cs プロジェクト: zhangrl/helios
 public LocalChannel() : base(null)
 {
     Configuration = new DefaultChannelConfiguration(this);
     _shutdownHook = new ShutdownHook(this);
     _readTask     = new ReadTask(this);
 }