public DummyImpl(IDataServer server, string input, ILogger logger, IMirrativSiteOptions siteOptions, MessageProvider2 p1, MetadataProvider2 p2) { _server = server; _input = input; _logger = logger; _siteOptions = siteOptions; _p1 = p1; _p2 = p2; }
public async Task InitAsync() { if (_isInitialized) { return; } var p1 = new MessageProvider2(new WebSocket("wss://online.mirrativ.com/"), _logger); p1.MessageReceived += P1_MessageReceived; p1.MetadataUpdated += P1_MetadataUpdated; _p1 = p1; var p2 = new MetadataProvider2(_server, _siteOptions); p2.MetadataUpdated += P2_MetadataUpdated; p2.Master = p1; _p2 = p2; }