示例#1
0
        public KClientSession(Horizon system, KSession parent) : base(system)
        {
            _parent = parent;

            State = ChannelState.Open;

            CreatorProcess = system.Scheduler.GetCurrentProcess();

            CreatorProcess.IncrementReferenceCount();
        }
示例#2
0
        public KClientSession(KernelContext context, KSession parent) : base(context)
        {
            _parent = parent;

            State = ChannelState.Open;

            CreatorProcess = context.Scheduler.GetCurrentProcess();

            CreatorProcess.IncrementReferenceCount();
        }
示例#3
0
        public KClientSession(KernelContext context, KSession parent, KClientPort parentPort) : base(context)
        {
            _parent    = parent;
            ParentPort = parentPort;

            parentPort?.IncrementReferenceCount();

            State = ChannelState.Open;

            CreatorProcess = KernelStatic.GetCurrentProcess();
            CreatorProcess.IncrementReferenceCount();
        }