Пример #1
0
 public CreatorsManager(ICreatorsCache creatorsCache, IMarvelClient marvelClient,
                        ReaderWriterLockSlim readerWriterLock, ICreatorsComparator creatorsComparator)
 {
     _creatorsCache      = creatorsCache;
     _marvelClient       = marvelClient;
     _readerWriterLock   = readerWriterLock;
     _creatorsComparator = creatorsComparator;
 }
        public CharacterClient(IMarvelClient marvelClient)
        {
            this.marvelClient = marvelClient;

            characterApi = RestService.For <ICharacterApi>(this.marvelClient.Host, new RefitSettings
            {
                ContentSerializer = new NewtonsoftJsonContentSerializer
                                    (
                    new JsonSerializerSettings
                {
                    ContractResolver = new CamelCasePropertyNamesContractResolver()
                }
                                    )
            });
        }
Пример #3
0
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     _client = new MarvelClient("ec29a219e0defb6f73a726f9aa1413e0", "c1c321f48ea81fb194a5772803d00f561d4c9d5d");
 }
 public HqIntegrationRepository(IMarvelClient marvelClient, INotificator notificator)
 {
     _marvelClient = marvelClient;
     _notificator  = notificator;
 }