Example #1
0
        public InspectionRepository(AssetRepository assetRepository)
        {
            _assetRepository = assetRepository;

            var authManager = new ClientCredentialsAuthorizationManager(
                "",
                "",
                "",
                "");

            _webApiClient = new WebApiClient(new BearerTokenWebApiCaller(authManager));
        }
Example #2
0
        public DiscrepancyTypeRepository(InspectionRepository inspectionRepository, AssetRepository assetRepository)
        {
            _inspectionRepository = inspectionRepository;
            _assetRepository      = assetRepository;

            var authManager = new ClientCredentialsAuthorizationManager(
                "",
                "",
                "",
                "");

            _webApiClient = new WebApiClient(new BearerTokenWebApiCaller(authManager));
        }
        public AssetRepository()
        {
            var authManager = new ClientCredentialsAuthorizationManager(
                "",
                "",
                "",
                "");
            var settingsStorage =
                new AzureTableStorage(
                    "",
                    "",
                    "");

            _objectItemRepository =
                new ArcGisRestApiRepository <ObjectItem>(
                    "",
                    new ObjectRestApiFeatureSerializer(), new BackchannelAuthorizationService(authManager),
                    new SettingsManager(settingsStorage, new DefaultMemoryCache()));
        }