/// <summary> /// Initializes a new instance of the <see cref="GrpcAgentBase{TClient}"/> class. /// </summary> /// <param name="args">The <see cref="IWebApiAgentArgs"/>.</param> protected GrpcAgentBase(IWebApiAgentArgs args) : base(args) { // Create the channel and the client. var channel = GrpcChannel.ForAddress(args.HttpClient.BaseAddress, new GrpcChannelOptions { HttpClient = Args.HttpClient }); Client = (TClient)Activator.CreateInstance(typeof(TClient), channel) !; }
/// <summary> /// Initializes a new instance of the <see cref="GrpcAgentBase"/> class. /// </summary> /// <param name="args">The <see cref="IWebApiAgentArgs"/>.</param> protected GrpcAgentBase(IWebApiAgentArgs args) => Args = args ?? throw new ArgumentNullException(nameof(args));
public RobotAgent(IWebApiAgentArgs args) : base(args) { }
public TripPersonAgent(IWebApiAgentArgs args) : base(args) { }
public AccountAgent(IWebApiAgentArgs args) : base(args) { }
public ContactAgent(IWebApiAgentArgs args) : base(args) { }
public TransactionAgent(IWebApiAgentArgs args) : base(args) { }
public GenderAgent(IWebApiAgentArgs args) : base(args) { }
public ProductAgent(IWebApiAgentArgs args) : base(args) { }
public ReferenceDataAgent(IWebApiAgentArgs args) : base(args) { }
public ConfigAgent(IWebApiAgentArgs args) : base(args) { }
/// <summary> /// Initializes a new instance of the <see cref="WebApiAgentBase"/> class. /// </summary> /// <param name="args">The <see cref="IWebApiAgentArgs"/>.</param> protected WebApiAgentBase(IWebApiAgentArgs args) : base(args) { }
public PerformanceReviewAgent(IWebApiAgentArgs args) : base(args) { }
/// <summary> /// Initializes a new instance of the <see cref="GrpcAgentBase"/> class. /// </summary> /// <param name="args">The <see cref="IWebApiAgentArgs"/>.</param> /// <param name="mapper">The <see cref="IMapper"/>.</param> protected GrpcAgentBase(IWebApiAgentArgs args, IMapper mapper) { Args = args ?? throw new ArgumentNullException(nameof(args)); Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public EmployeeAgent(IWebApiAgentArgs args) : base(args) { }