コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerController"/> class.
 /// </summary>
 /// <param name="apiClient">The API client.</param>
 public ServerController(Func <Uri, IComputeApiClient> apiClient)
 {
     _computeClient = apiClient(ConfigurationHelpers.GetApiUri());
 }
コード例 #2
0
 public CaaSAuthenticationMiddleWare(OwinMiddleware next, Func <Uri, IComputeApiClient> apiClient)
     : base(next)
 {
     _apiClient = apiClient(ConfigurationHelpers.GetApiUri());
 }