@@ -10,6 +10,7 @@ namespace OpenStack.Serialization
1010 /// Resources which want to expose service operations directly (e.g. resource.Delete())
1111 /// should implement this interface and the service will use it to add a reference to itself.
1212 /// </summary>
13+ /// <exclude />
1314 public interface IServiceResource
1415 {
1516 /// <summary>
@@ -21,6 +22,7 @@ public interface IServiceResource
2122 /// <summary>
2223 /// Resources which are children of another resource.
2324 /// </summary>
25+ /// <exclude />
2426 public interface IChildResource : IServiceResource
2527 {
2628 /// <summary>
@@ -34,14 +36,14 @@ public interface IChildResource : IServiceResource
3436 void SetParent ( string parentId ) ;
3537 }
3638
37- /// <summary />
39+ /// <exclude />
3840 public static class ServiceResourceExtensions
3941 {
4042 /// <summary />
4143 public static async Task < T > PropogateOwner < T > ( this Task < T > task , object owner )
4244 where T : IServiceResource
4345 {
44- T resource = await task ;
46+ T resource = await task . ConfigureAwait ( false ) ;
4547 return PropogateOwner ( resource , owner ) ;
4648 }
4749
@@ -77,7 +79,7 @@ public static T PropogateOwner<T>(this T resource, object owner)
7779 public static async Task < T > PropogateOwnerToChildren < T > ( this Task < T > task , object owner )
7880 where T : IEnumerable < IServiceResource >
7981 {
80- T resources = await task ;
82+ T resources = await task . ConfigureAwait ( false ) ;
8183 return resources . PropogateOwnerToChildren ( owner ) ;
8284 }
8385
@@ -109,7 +111,7 @@ public static T GetOwnerOrThrow<T>(this IServiceResource resource, [CallerMember
109111 public static async Task < T > SetParent < T > ( this Task < T > task , string parentId )
110112 where T : IChildResource
111113 {
112- var resource = await task ;
114+ var resource = await task . ConfigureAwait ( false ) ;
113115 resource . SetParent ( parentId ) ;
114116 return resource ;
115117 }
@@ -118,7 +120,7 @@ public static async Task<T> SetParent<T>(this Task<T> task, string parentId)
118120 public static async Task < T > SetParentOnChildren < T > ( this Task < T > task , string parentId )
119121 where T : IEnumerable < IChildResource >
120122 {
121- var resources = await task ;
123+ var resources = await task . ConfigureAwait ( false ) ;
122124 return SetParentOnChildren ( resources , parentId ) ;
123125 }
124126
0 commit comments