/// <summary> /// Initializes a new instance of the <see cref="CustomerLogic"/> class. /// </summary> /// <param name="redisCache">The redis cache.</param> /// <param name="localCache">The local cache.</param> /// <param name="appSettings">The application settings.</param> /// <param name="logger">The logger.</param> /// <param name="options">The options.</param> /// <param name="bpByContractAccountRepository">The bp by contract account repository.</param> /// <param name="customerRepository">The customer repository.</param> /// <param name="authenticationApi">The authentication API.</param> /// <param name="mcfClient"></param> /// <param name="addressApi"></param> /// /// <param name="requestContextAdapter"></param> public CustomerLogic( IDistributedCache redisCache, IMemoryCache localCache, IOptions <AppSettings> appSettings, ILogger <CustomerLogic> logger, ICoreOptions options, IBPByContractAccountRepository bpByContractAccountRepository, ICustomerRepository customerRepository, IAuthenticationApi authenticationApi, IMcfClient mcfClient, IAddressApi addressApi, IRequestContextAdapter requestContextAdapter) { _redisCache = redisCache ?? throw new ArgumentNullException(nameof(redisCache)); _localCache = localCache ?? throw new ArgumentNullException(nameof(localCache)); _appSettings = appSettings ?? throw new ArgumentNullException(nameof(appSettings)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _options = options ?? throw new ArgumentNullException(nameof(options)); _bpByContractAccountRepository = bpByContractAccountRepository ?? throw new ArgumentNullException(nameof(bpByContractAccountRepository)); _customerRepository = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository)); _authenticationApi = authenticationApi ?? throw new ArgumentNullException(nameof(authenticationApi)); _mcfClient = mcfClient ?? throw new ArgumentNullException(nameof(mcfClient)); _addressApi = addressApi ?? throw new ArgumentNullException(nameof(addressApi)); _requestContextAdapter = requestContextAdapter ?? throw new ArgumentNullException(nameof(requestContextAdapter)); }
public void CreateWorkspace(ICoreOptions options) { Console.WriteLine(); Console.WriteLine("Project Type = {0}", options.ProjectType); Console.WriteLine("Project Name = {0}", options.ProjectName); Console.WriteLine("Project Location = {0}", options.ProjectLocation); Console.WriteLine("Assembly Name = {0}", options.AssemblyName); Console.WriteLine("Default Namespace = {0}", options.DefaultNamespace); Console.WriteLine(); }
/// <summary> /// Constructor for DI /// </summary> /// <param name="coreOptions"></param> /// <param name="channelContext"></param> public AuthenticationApi(ICoreOptions coreOptions, IRequestContextAdapter channelContext) : base(coreOptions) { _channelContext = channelContext; }
/// <summary> /// Initializes a new instance of the <see cref="AddressApi"/> class. /// </summary> /// <param name="coreOptions">used to get load config info such as the balancer address</param> public AddressApi(ICoreOptions coreOptions) : base(coreOptions) { }
/// <summary> /// Initializes a new instance of the <see cref="AccountApi"/> class. /// </summary> /// <param name="coreOptions">The core options.</param> /// <param name="channelContext">The channel context.</param> public AccountApi(ICoreOptions coreOptions, IRequestContextAdapter channelContext) : base(coreOptions) { _channelContext = channelContext; }
/// <summary> /// Constructor for dependency injection /// </summary> /// <param name="coreOptions">used to get load config info such as the balancer address</param> public ClientProxy(ICoreOptions coreOptions) { _coreOptions = coreOptions ?? throw new ArgumentNullException(nameof(coreOptions)); }