Beispiel #1
0
 /// <summary>
 /// Register a module requester. The request will be fullfilled after the content has been loaded.
 /// It you want to fullfill the request immediately, use FullfillRequestNow(IModuleRequester).
 /// </summary>
 /// <param name="requester">An object that implements IModuleRequester.</param>
 public void RegisterRequester(IModuleRequester requester)
 {
     requesters.Add(requester);
 }
Beispiel #2
0
 /// <summary>
 /// Fullfills a request immediately.
 /// </summary>
 /// <param name="requester">The requester to receive the dependencies.</param>
 public void FullfillRequestNow(IModuleRequester requester)
 {
     requester.SetModules(BuildCollection(requester.GetRequestedModules().ToArray()), this);
 }