Esempio n. 1
0
 protected internal AssetsRequest(
     AssetsArchiver assetsArchiver, ICollection<UUID> uuids, 
     IAssetCache assetCache, AssetsRequestCallback assetsRequestCallback)
 {
     m_assetsArchiver = assetsArchiver;
     m_uuids = uuids;
     m_assetsRequestCallback = assetsRequestCallback;
     m_assetCache = assetCache;
     m_repliesRequired = uuids.Count;
 }
Esempio n. 2
0
 protected internal AssetsRequest(
     AssetsArchiver assetsArchiver, ICollection <UUID> uuids,
     IAssetCache assetCache, AssetsRequestCallback assetsRequestCallback)
 {
     m_assetsArchiver        = assetsArchiver;
     m_uuids                 = uuids;
     m_assetsRequestCallback = assetsRequestCallback;
     m_assetCache            = assetCache;
     m_repliesRequired       = uuids.Count;
 }
Esempio n. 3
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 System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed  += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 4
0
 protected internal AssetsRequest(
     AssetsArchiver assetsArchiver, IDictionary <UUID, sbyte> uuids,
     int previousErrorsCount,
     IAssetService assetService, IUserAccountService userService,
     UUID scope, Dictionary <string, object> options,
     AssetsRequestCallback assetsRequestCallback)
 {
     m_assetsArchiver        = assetsArchiver;
     m_uuids                 = uuids;
     m_previousErrorsCount   = previousErrorsCount;
     m_assetsRequestCallback = assetsRequestCallback;
     m_assetService          = assetService;
     m_userAccountService    = userService;
     m_scopeID               = scope;
     m_options               = options;
     m_repliesRequired       = uuids.Count;
 }
Esempio n. 5
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary <UUID, AssetType> uuids,
            IAssetService assetService, IUserAccountService userService,
            UUID scope, Dictionary <string, object> options,
            AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver        = assetsArchiver;
            m_uuids                 = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService          = assetService;
            m_userAccountService    = userService;
            m_scopeID               = scope;
            m_options               = options;
            m_repliesRequired       = uuids.Count;

            m_requestCallbackTimer           = new System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed  += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 6
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary <UUID, AssetType> uuids,
            IAssetService assetService, IUserAccountService userService,
            UUID scope, Dictionary <string, object> options,
            AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver        = assetsArchiver;
            m_uuids                 = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService          = assetService;
            m_userAccountService    = userService;
            m_scopeID               = scope;
            m_options               = options;
            m_repliesRequired       = uuids.Count;

            // FIXME: This is a really poor way of handling the timeout since it will always leave the original requesting thread
            // hanging.  Need to restructure so an original request thread waits for a ManualResetEvent on asset received
            // so we can properly abort that thread.  Or request all assets synchronously, though that would be a more
            // radical change
            m_requestCallbackTimer           = new System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed  += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 7
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary<UUID, AssetType> uuids, 
            IAssetService assetService, IUserAccountService userService, 
            UUID scope, Dictionary<string, object> options, 
            AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver = assetsArchiver;
            m_uuids = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService = assetService;
            m_userAccountService = userService;
            m_scopeID = scope;
            m_options = options;
            m_repliesRequired = uuids.Count;

            // FIXME: This is a really poor way of handling the timeout since it will always leave the original requesting thread
            // hanging.  Need to restructure so an original request thread waits for a ManualResetEvent on asset received
            // so we can properly abort that thread.  Or request all assets synchronously, though that would be a more
            // radical change
            m_requestCallbackTimer = new System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 8
0
        protected internal AssetsRequest(
            AssetsArchiver assetsArchiver, IDictionary<UUID, AssetType> uuids, 
            IAssetService assetService, IUserAccountService userService, 
            UUID scope, Dictionary<string, object> options, 
            AssetsRequestCallback assetsRequestCallback)
        {
            m_assetsArchiver = assetsArchiver;
            m_uuids = uuids;
            m_assetsRequestCallback = assetsRequestCallback;
            m_assetService = assetService;
            m_userAccountService = userService;
            m_scopeID = scope;
            m_options = options;
            m_repliesRequired = uuids.Count;

            m_requestCallbackTimer = new System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 9
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 System.Timers.Timer(TIMEOUT);
            m_requestCallbackTimer.AutoReset = false;
            m_requestCallbackTimer.Elapsed += new ElapsedEventHandler(OnRequestCallbackTimeout);
        }
Esempio n. 10
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;
        }