public NetworkOperationWriter(OperationMap map, ISerializationService serializer, IOperationTransport transport)
        {
            _map = map;
            _serializer = serializer;

            _transport = transport;
        }
        public NetworkOperationWriter(OperationMap map, ISerializationService serializer, IOperationTransport transport)
        {
            _map        = map;
            _serializer = serializer;

            _transport = transport;
        }
Esempio n. 3
0
        public OperationSystem(OperationMap map, ISerializationService serializer, IOperationTransport transport, Func<Type, IOperationHandler> handlerFactory)
        {
            var writer = new NetworkOperationWriter(map, serializer, transport);
            var reader = new NetworkOperationReader(map, serializer);

            var activeOperations = new ActiveOperationsManager();

            Dispatcher = new OperationDispatcher(activeOperations, writer);
            Processor = new OperationProcessor(new OperationService(activeOperations, writer, handlerFactory), reader);
        }
Esempio n. 4
0
        public OperationSystem(OperationMap map, ISerializationService serializer, IOperationTransport transport, Func <Type, IOperationHandler> handlerFactory)
        {
            var writer = new NetworkOperationWriter(map, serializer, transport);
            var reader = new NetworkOperationReader(map, serializer);

            var activeOperations = new ActiveOperationsManager();

            Dispatcher = new OperationDispatcher(activeOperations, writer);
            Processor  = new OperationProcessor(new OperationService(activeOperations, writer, handlerFactory), reader);
        }