Пример #1
0
        /// <summary>
        /// Called when the local medium has arrived.
        /// </summary>
        async void StartedWatching(IMediumWatcher watcher, Medium medium)
        {
            // Start session handler
            SessionHandler = new SessionHandler(APIKey);
            SessionHandler.StateUpdated += SessionHandler_StateUpdated;
            var session = await SessionHandler.Init();

            // Start contents handler
            _contentsHandler = new ContentsHandler(session);
        }
Пример #2
0
        /// <summary>
        /// Called when the local medium has arrived.
        /// </summary>
        async void StartedWatching(IMediumWatcher watcher, Medium medium) {

            // Start session handler
            SessionHandler = new SessionHandler(APIKey);
            SessionHandler.StateUpdated += SessionHandler_StateUpdated;
            var session = await SessionHandler.Init();

            // Start contents handler
            _contentsHandler = new ContentsHandler(session);

        }