예제 #1
0
        protected Microservice(MicroserviceOptions <TOptions> options)
        {
            if (string.IsNullOrEmpty(options.ServiceId))
            {
                throw new ArgumentNullException(nameof(options.ServiceId));
            }

            Options = options;
        }
예제 #2
0
 public MessageBusMicroservice(MicroserviceOptions <MessageBusMicroserviceOptions> options)
     : base(options)
 {
 }
예제 #3
0
 public ApiMicroservice(MicroserviceOptions <ApiMicroserviceOptions> options)
     : base(options)
 {
     MessageSource = new ApiMessageSource(this);
 }