コード例 #1
0
 internal void Init()
 {
     _serviceLocator = new ServiceLocator();
     _setup          = new PenneoSetup(_serviceLocator);
     _setup.InitializeRestResources();
     _setup.InitializeMappings();
     _setup.InitializePostProcessors();
 }
コード例 #2
0
        /// <summary>
        /// Initialize the connection to Penneo.
        /// </summary>
        public PenneoConnector(string key, string secret, string endpoint = null, string user = null, Dictionary <string, string> headers = null, AuthType authType = AuthType.WSSE)
        {
            _serviceLocator = new ServiceLocator();
            _setup          = new PenneoSetup(_serviceLocator);
            _setup.InitializeRestResources();
            _setup.InitializeMappings();
            _setup.InitializePostProcessors();

            _api = new ApiConnector(this, _setup.GetRestResources(), endpoint, headers, user, key, secret, authType);

            IsInitialized = true;
        }