protected ClientContextBase(ISerializer serializer, IClientTransport transport)
        {
            Serializer = serializer;
            Transport = transport;

            OperationSystem = new OperationSystem(new OperationMap(), new SerializationService(serializer), Transport, HandlerFactory);
        }
        public InstanceServerContext(ISerializer serializer, IServerTransport transport)
            : base(serializer)
        {
            Transport = transport;

            OperationSystem = new OperationSystem(OperationMap, new SerializationService(Serializer), Transport, new OperationHandlerFactory(Container).CreateHandler);
            OperationSystem.Dispatcher.InitializeContext(ContextType.InstanceServer);
        }
        protected ClientContextBase(ServerContextBase application, IServerTransport transport)
        {
            Application = application;
            Transport = transport;

            Scope = Application.Container.BeginLifetimeScope(this);
            OperationSystem = new OperationSystem(Application.OperationMap, new SerializationService(Application.Serializer), Transport, HandlerFactory);
        }