Пример #1
0
 public PeerToPeerService(ILogger <PeerToPeerService> logger, PeerToPeerMessageHandler peerToPeerMessageHandler, BlockContentService blockContentService, WebSocketsHandler webSocketsHandler)
 {
     _logger = logger;
     _peerToPeerMessageHandler = peerToPeerMessageHandler;
     _blockContentService      = blockContentService;
     _webSocketsHandler        = webSocketsHandler;
 }
Пример #2
0
 public PeerToPeerMessageHandler(ILogger <PeerToPeerMessageHandler> logger, BlockService blockService, Base64Handler base64Handler, BlockContentService blockContentService)
 {
     _logger                    = logger;
     _blockService              = blockService;
     _base64Handler             = base64Handler;
     _blockContentService       = blockContentService;
     _rdf4jSerializationHandler = new DotNetRdfSerializationHandler();
     _rdf4jMapper               = new DotNetRdfMapper();
 }