Esempio n. 1
0
 internal static Task<Resource> OpenAsync()
 {
     return Task.Run<Resource>(() => 
     {
         Resource.Singleton = new Resource();
         return Resource.Singleton;
     });
 }
Esempio n. 2
0
 internal Task CloseAsync()
 {
     return Task.Run(() => { Resource.Singleton = null; });
 }
Esempio n. 3
0
 internal static Task LogAsync(Resource res, ResourceException e)
 {
     //nothing to do yet
     return null;
 }