Пример #1
0
        // TODO: Note that there is a contract here, InitialisedComplete SHALL follow, in a timely manner
        Guid IDataController.BeginInitialise(DataControllerConfig config)
        {
            Log.Debug("BeginInitialise(...) called.");
            IntegrityCheck.IsNotNull(config, "config");
            IntegrityCheck.IsNotNullOrEmpty(config.ApiKey, "config.ApiKey");
            IntegrityCheck.IsNotNullOrEmpty(config.UrlRoot, "config.UrlRoot");

            m_Config = config;
            m_TokenSourceLookup.Clear();

            return(StartLogic((Guid guid, CancellationToken token) =>
                              StartInitialiseTask(config, guid, token)));
        }
Пример #2
0
 protected abstract void StartInitialiseTask(DataControllerConfig config,
                                             Guid guid, CancellationToken token);