internal ResourceLoadingTask(string resourceIdentifier, Type resourceLoadingParametersType, IResourceLoadingParameters resourceLoadingParameters, Type resourceType, bool globalResource) { if (string.IsNullOrEmpty(resourceIdentifier)) { throw new ArgumentException("Invalid resource identifier.", nameof(resourceIdentifier)); } ResourceIdentifier = resourceIdentifier; ResourceLoadingParametersType = resourceLoadingParametersType; ResourceLoadingParameters = resourceLoadingParameters; ResourceType = resourceType; GlobalResource = globalResource; }
internal ResourceLoadingTask(string resourceIdentifier, Type resourceLoadingParametersType, IResourceLoadingParameters resourceLoadingParameters, Type resourceType, bool globalResource) { if (string.IsNullOrEmpty(resourceIdentifier)) { Log.WriteLine("Invalid resource identifier.", LogType.Error); return; } ResourceIdentifier = resourceIdentifier; ResourceLoadingParametersType = resourceLoadingParametersType; ResourceLoadingParameters = resourceLoadingParameters; ResourceType = resourceType; GlobalResource = globalResource; }
public IResource LoadResource(string resourceIdentifier, IResourceLoadingParameters loadingParameters) { return(LoadResource(resourceIdentifier, (RLP)loadingParameters)); }