コード例 #1
0
 /// <summary>
 /// Регистрация сервисов обмена данными
 /// </summary>
 private static void RegisterRestClient(IBoutiqueContainer container, IXamarinConfigurationDomain configuration) =>
 configuration.HostConfiguration.
 Void(hostConfig => container.Register(service => HttpClientFactory.GetRestClient(hostConfig)));
コード例 #2
0
 /// <summary>
 /// Регистрация сервисов обмена данными
 /// </summary>
 public static void RegisterServices(IBoutiqueContainer container, IXamarinConfigurationDomain configuration) =>
 container.
 Void(_ => RegisterRestClient(container, configuration)).
 Void(_ => RegisterRestServices(container));