コード例 #1
0
        public void AddConfigureEndpointsCallback(ConfigureEndpointsCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException(nameof(callback));
            }

            Registrar.RegisterSingleInstance <IConfigureReceiveEndpoint>(provider => new DelegateConfigureReceiveEndpoint(callback));
        }
コード例 #2
0
        public DelegateConfigureReceiveEndpoint(ConfigureEndpointsCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException(nameof(callback));
            }

            _callback = callback;
        }