예제 #1
0
        /// <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) !;
        }
예제 #2
0
 /// <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));
예제 #3
0
 public RobotAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #4
0
 public TripPersonAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #5
0
 public AccountAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #6
0
 public ContactAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #7
0
 public TransactionAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #8
0
 public GenderAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #9
0
 public ProductAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #10
0
 public ReferenceDataAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #11
0
 public ConfigAgent(IWebApiAgentArgs args) : base(args)
 {
 }
예제 #12
0
 /// <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)
 {
 }
예제 #14
0
 /// <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));
 }
예제 #15
0
 public EmployeeAgent(IWebApiAgentArgs args) : base(args)
 {
 }