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