Class ResourceDataAccessorAsyncWrapper
Inheritance
System.Object
ResourceDataAccessorAsyncWrapper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
[Obsolete("Use functions accepting IResourceDataAccessorAsync")]
public class ResourceDataAccessorAsyncWrapper : IResourceDataAccessorAsync
Constructors
Declaration
public ResourceDataAccessorAsyncWrapper(IResourceDataAccessor accessor)
Parameters
Methods
Declaration
public Task<byte[]> GetResourceDataAsync(CultureCode culture, LanguageResourceType t, bool fallback)
Parameters
Type |
Name |
Description |
Sdl.Core.Globalization.CultureCode |
culture |
|
LanguageResourceType |
t |
|
System.Boolean |
fallback |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Byte[]> |
|
Declaration
public Task<ResourceStatus> GetResourceStatusAsync(CultureCode culture, LanguageResourceType t, bool fallback)
Parameters
Type |
Name |
Description |
Sdl.Core.Globalization.CultureCode |
culture |
|
LanguageResourceType |
t |
|
System.Boolean |
fallback |
|
Returns
Declaration
public List<CultureCode> GetSupportedCultures(LanguageResourceType t)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<Sdl.Core.Globalization.CultureCode> |
|
Declaration
public static IResourceDataAccessorAsync GetWrapper(IResourceDataAccessor accessor)
Parameters
Returns
Declaration
public Task<Stream> ReadResourceDataAsync(CultureCode culture, LanguageResourceType t, bool fallback)
Parameters
Type |
Name |
Description |
Sdl.Core.Globalization.CultureCode |
culture |
|
LanguageResourceType |
t |
|
System.Boolean |
fallback |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.IO.Stream> |
|
Implements