Exemple #1
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary <UUID, AssetType> uuids,
            IAssetService assetService, AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver        = assetsArchiver;
            m_uuids                 = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService          = assetService;
            m_repliesRequired       = uuids.Count;

            m_requestCallbackTimer = new Timer(TIMEOUT)
            {
                AutoReset = false
            };
            m_requestCallbackTimer.Elapsed += OnRequestCallbackTimeout;
        }
Exemple #2
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary<UUID, AssetType> uuids,
            IAssetService assetService, AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver = assetsArchiver;
            m_uuids = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService = assetService;
            m_repliesRequired = uuids.Count;

            m_requestCallbackTimer = new Timer(TIMEOUT) {AutoReset = false};
            m_requestCallbackTimer.Elapsed += OnRequestCallbackTimeout;
        }