Esempio n. 1
0
 public CourseDirectoryClient(
     IInfrastructureSettings settings,
     ICourseDirectoryProviderDataService courseDirectoryProviderDataService,
     ILog logger)
 {
     _settings = settings;
     _courseDirectoryProviderDataService = courseDirectoryProviderDataService;
     _logger = logger;
 }
        /// <summary>
        /// Provides the ability to retreive all providers that provide
        /// training for standards and frameworks along with the locations and
        /// areas that they offer to provide it.
        /// </summary>
        /// <param name='operations'>
        /// Reference to the
        /// Sfa.Infrastructure.ICourseDirectoryProviderDataService.
        /// </param>
        /// <param name='version'>
        /// Optional. version of the api
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <IList <ApplicationServices.Provider.Models.CourseDirectory.Provider> > BulkprovidersAsync(this ICourseDirectoryProviderDataService operations, int?version = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <System.Collections.Generic.IList <ApplicationServices.Provider.Models.CourseDirectory.Provider> > result = await operations.BulkprovidersWithOperationResponseAsync(version, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
 /// <summary>
 /// Provides the ability to retreive all providers that provide
 /// training for standards and frameworks along with the locations and
 /// areas that they offer to provide it.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Sfa.Infrastructure.ICourseDirectoryProviderDataService.
 /// </param>
 /// <param name='version'>
 /// Optional. version of the api
 /// </param>
 public static IList <ApplicationServices.Provider.Models.CourseDirectory.Provider> Bulkproviders(this ICourseDirectoryProviderDataService operations, int?version = null)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ICourseDirectoryProviderDataService)s).BulkprovidersAsync(version);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }