Пример #1
0
        /// <summary>
        /// Creates a TargetClient using provided Target configuration
        /// </summary>
        /// <param name="clientConfig">Target Client configuration</param>
        /// <returns>Created <see cref="TargetClient"/> instance</returns>
        public static TargetClient Create(TargetClientConfig clientConfig)
        {
            var targetClient = new TargetClient();

            targetClient.Initialize(clientConfig);

            return(targetClient);
        }
Пример #2
0
 /// <inheritdoc />
 public void Initialize(TargetClientConfig clientConfig)
 {
     this.targetService            = new TargetService(clientConfig);
     this.localService             = new OnDeviceDecisioningService(clientConfig, this.targetService);
     this.defaultDecisioningMethod = clientConfig.DecisioningMethod;
     this.defaultPropertyToken     = clientConfig.DefaultPropertyToken;
     Logger = clientConfig.Logger;
     Logger?.LogDebug("Initialized Target Client: " + clientConfig.OrganizationId);
 }