• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IPipeline类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IPipeline的典型用法代码示例。如果您正苦于以下问题:C# IPipeline类的具体用法?C# IPipeline怎么用?C# IPipeline使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IPipeline类属于命名空间,在下文中一共展示了IPipeline类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PipelineStepProfiler

 /// <summary>
 /// Creates the profiler
 /// </summary>
 public PipelineStepProfiler(IPipeline pipeline, PipelineStepProfilerStats profilerStats)
 {
     if (pipeline == null) throw new ArgumentNullException(nameof(pipeline));
     if (profilerStats == null) throw new ArgumentNullException(nameof(profilerStats));
     _pipeline = pipeline;
     _profilerStats = profilerStats;
 }
开发者ID:RichieYang,项目名称:Rebus,代码行数:10,代码来源:PipelineStepProfiler.cs


示例2: MainPipelineExecutor

 public MainPipelineExecutor(IBuilder builder, IEventAggregator eventAggregator, IPipelineCache pipelineCache, IPipeline<ITransportReceiveContext> mainPipeline)
 {
     this.mainPipeline = mainPipeline;
     this.pipelineCache = pipelineCache;
     this.builder = builder;
     this.eventAggregator = eventAggregator;
 }
开发者ID:Particular,项目名称:NServiceBus,代码行数:7,代码来源:MainPipelineExecutor.cs


示例3: TcpChannel

 public TcpChannel(IPipeline pipeline, BufferPool pool)
 {
     _pipeline = pipeline;
     Pipeline.SetChannel(this);
     _readBuffer = pool.PopSlice();
     _stream = new PeekableMemoryStream(_readBuffer.Buffer, _readBuffer.StartOffset, _readBuffer.Capacity);
 }
开发者ID:chrisecotrol,项目名称:griffin.networking,代码行数:7,代码来源:TcpChannel.cs


示例4: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     pipelineRunner.Notify(WrapOperations)
         .After<KnownStages.IRequestDecoding>()
         .And
         .Before<KnownStages.IOperationExecution>();
 }
开发者ID:dhootha,项目名称:openrasta-core,代码行数:7,代码来源:OperationInterceptorContributor.cs


示例5: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     pipelineRunner.Notify(ChallengeIfUnauthorized)
         .After<KnownStages.IOperationExecution>()
         .And
         .Before<KnownStages.IResponseCoding>();
 }
开发者ID:dhootha,项目名称:openrasta-core,代码行数:7,代码来源:AuthenticationChallengerContributor.cs


示例6: ThreadPoolWorkerFactory

        /// <summary>
        /// Creates the worker factory
        /// </summary>
        public ThreadPoolWorkerFactory(ITransport transport, IRebusLoggerFactory rebusLoggerFactory, IPipeline pipeline, IPipelineInvoker pipelineInvoker, Options options, Func<RebusBus> busGetter, BusLifetimeEvents busLifetimeEvents, ISyncBackoffStrategy backoffStrategy)
        {
            if (transport == null) throw new ArgumentNullException(nameof(transport));
            if (rebusLoggerFactory == null) throw new ArgumentNullException(nameof(rebusLoggerFactory));
            if (pipeline == null) throw new ArgumentNullException(nameof(pipeline));
            if (pipelineInvoker == null) throw new ArgumentNullException(nameof(pipelineInvoker));
            if (options == null) throw new ArgumentNullException(nameof(options));
            if (busGetter == null) throw new ArgumentNullException(nameof(busGetter));
            if (busLifetimeEvents == null) throw new ArgumentNullException(nameof(busLifetimeEvents));
            if (backoffStrategy == null) throw new ArgumentNullException(nameof(backoffStrategy));
            _transport = transport;
            _rebusLoggerFactory = rebusLoggerFactory;
            _pipeline = pipeline;
            _pipelineInvoker = pipelineInvoker;
            _options = options;
            _busGetter = busGetter;
            _backoffStrategy = backoffStrategy;
            _parallelOperationsManager = new ParallelOperationsManager(options.MaxParallelism);
            _log = _rebusLoggerFactory.GetCurrentClassLogger();

            if (_options.MaxParallelism < 1)
            {
                throw new ArgumentException($"Max parallelism is {_options.MaxParallelism} which is an invalid value");
            }

            if (options.WorkerShutdownTimeout < TimeSpan.Zero)
            {
                throw new ArgumentOutOfRangeException($"Cannot use '{options.WorkerShutdownTimeout}' as worker shutdown timeout as it");
            }

            busLifetimeEvents.WorkersStopped += WaitForContinuationsToFinish;
        }
开发者ID:xenoputtss,项目名称:Rebus,代码行数:35,代码来源:ThreadPoolWorkerFactory.cs


示例7: Initialize

 public void Initialize(IPipeline pipeline)
 {
     pipeline.Notify(WriteResponse).After<KnownStages.ICodecResponseSelection>();
     //.And
     //.Before<KnownStages.IEnd>();
     Log = NullLogger.Instance;
 }
开发者ID:hibri,项目名称:openrasta-stable,代码行数:7,代码来源:ResponseEntityWriterContributor.cs


示例8: NancyPipelineRoutes

        public NancyPipelineRoutes(IPipeline pipeline, INotificationTarget notifier)
        {
            Post["/bitbucket"] = parameters => {
                string notificationString = Request.Form.Payload;

                var commitNotification = JsonConvert.DeserializeObject<BitbucketPostReceiveNotification>(notificationString);
                commitNotification.Commits.ForEach(c => pipeline.AddToPipeline(new Commit(c.Author, c.Message, c.Branch)));

                return "THANKS BITBUCKET";
            };

            Post["/jenkins"] = parameters => {
                var buildNotification = this.Bind<JenkinsBuildNotification>();

                var buildStep = pipeline[buildNotification.Name];

                if (buildNotification.Build.Phase == "STARTED") {
                    buildStep.Start();
                } else if (buildNotification.Build.Phase == "FINISHED") {
                    if (buildNotification.Build.Status == "SUCCESS")
                    {
                        buildStep.Pass();
                    }
                    else
                    {
                        buildStep.Fail();
                    }
                }

                return "THANKS FOR THE BUILD DEETS";
            };
        }
开发者ID:pimterry,项目名称:hipchat-filterer,代码行数:32,代码来源:PipelineRoutes.cs


示例9: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     pipelineRunner.Notify(PostExecution).After<KnownStages.IOperationExecution>()
         .And.Before<KnownStages.IOperationResultInvocation>();
     pipelineRunner.Notify(RewriteResult).After<KnownStages.IOperationResultInvocation>()
         .And.Before<KnownStages.IResponseCoding>();
 }
开发者ID:shekelator,项目名称:openrasta-caching,代码行数:7,代码来源:LastModifiedContributor.cs


示例10: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     pipelineRunner.Notify(AuthoriseRequest)
         .After<KnownStages.IBegin>()
         .And
         .Before<KnownStages.IHandlerSelection>();
 }
开发者ID:openrasta,项目名称:openrasta-core,代码行数:7,代码来源:AuthenticationContributor.cs


示例11: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     pipelineRunner.Notify(ProcessPostConditional)
         .Before<ConditionalLastModifiedContributor>()
         .And
         .Before<KnownStages.IResponseCoding>();
 }
开发者ID:shekelator,项目名称:openrasta-caching,代码行数:7,代码来源:ConditionalEtagContributor.cs


示例12: Cache

        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            this.Pipeline = pipeline;
            cachePruner.Start(this);
        }
开发者ID:bbawol,项目名称:ninject,代码行数:13,代码来源:Cache.cs


示例13: ProxyBase

        protected ProxyBase(Type contract, IPipeline<ClientActionContext> pipeline)
        {
            if (contract == null) throw new ArgumentNullException(nameof(contract));
            if (pipeline == null) throw new ArgumentNullException(nameof(pipeline));

            Contract = contract;
            _pipeline = pipeline;
        }
开发者ID:geffzhang,项目名称:Bolt,代码行数:8,代码来源:ProxyBase.cs


示例14: Initialize

 public void Initialize(IPipeline pipelineRunner)
 {
     _authentication = _resolver.Resolve<IAuthenticationProvider>();
     pipelineRunner.Notify(ReadCredentials)
         .After<KnownStages.IBegin>()
         .And
         .Before<KnownStages.IHandlerSelection>();
 }
开发者ID:dhootha,项目名称:openrasta-core,代码行数:8,代码来源:BasicAuthorizerContributor.cs


示例15: TcpServerChannel

 public TcpServerChannel(IPipeline serverPipeline, IPipeline childPipeline, int maxNumberOfClients)
 {
     _bufferManager = new BufferManager(maxNumberOfClients, 65535);
     _argsPool = new ObjectPool<SocketAsyncEventArgs>(AllocateArgs);
     Pipeline = serverPipeline;
     _contexts = new ContextCollection(this);
     ChildPipeline = childPipeline;
 }
开发者ID:jmptrader,项目名称:griffin,代码行数:8,代码来源:TcpServerChannel.cs


示例16: RebusBus

 /// <summary>
 /// Constructs the bus.
 /// </summary>
 public RebusBus(IWorkerFactory workerFactory, IRouter router, ITransport transport, IPipeline pipeline, IPipelineInvoker pipelineInvoker, ISubscriptionStorage subscriptionStorage)
 {
     _workerFactory = workerFactory;
     _router = router;
     _transport = transport;
     _pipeline = pipeline;
     _pipelineInvoker = pipelineInvoker;
     _subscriptionStorage = subscriptionStorage;
 }
开发者ID:mhertis,项目名称:Rebus,代码行数:12,代码来源:RebusBus.cs


示例17: AprsPacketSpout

 /// <summary>
 /// Initializes a new instance of the <see cref="AprsPacketSpout" /> class.
 /// </summary>
 /// <param name="pipeline">The pipeline.</param>
 public AprsPacketSpout(IPipeline<byte[]> pipeline)
 {
     _user = ConfigurationManager.AppSettings["user"];
     var password = ConfigurationManager.AppSettings["password"] ?? "-1";
     _hostname = ConfigurationManager.AppSettings["hostname"];
     _port = int.Parse(ConfigurationManager.AppSettings["port"]);
     _logon = Encoding.UTF8.GetBytes("user " + _user + " pass " + password + "\n");
     _pipeline = pipeline.Create(string.Empty);
 }
开发者ID:bradsjm,项目名称:AprsEventHubDemo,代码行数:13,代码来源:AprsPacketSpout.cs


示例18: Cache

        /// <summary>
        /// Initializes a new instance of the <see cref="Cache"/> class.
        /// </summary>
        /// <param name="pipeline">The pipeline component.</param>
        /// <param name="cachePruner">The cache pruner component.</param>
        public Cache(IPipeline pipeline, ICachePruner cachePruner)
        {
            Ensure.ArgumentNotNull(pipeline, "pipeline");
            Ensure.ArgumentNotNull(cachePruner, "cachePruner");

            _entries = new Multimap<IBinding, CacheEntry>();
            Pipeline = pipeline;
            cachePruner.Start(this);
        }
开发者ID:developingchris,项目名称:ninject,代码行数:14,代码来源:Cache.cs


示例19: Execute

        public object Execute(IContext context, IPipeline pipeline)
        {
            if (_instance == null)
                lock (this)
                    if (_instance == null)
                        _instance = pipeline.Execute();

            return _instance;
        }
开发者ID:JonasSamuelsson,项目名称:Maestro,代码行数:9,代码来源:SingletonLifetime.cs


示例20: SubscriberService

        public SubscriberService(ISubscriberRecordRepository subscriberRecordRepository, IPipeline<SubscriberRecord> pipeline, ISubscriberRecordService subscriberRecordService)
        {
            Check.If(subscriberRecordRepository).IsNotNull();
            Check.If(pipeline).IsNotNull();
            Check.If(subscriberRecordService).IsNotNull();

            _subscriberRecordRepository = subscriberRecordRepository;
            _pipeline = pipeline;
            _subscriberRecordService = subscriberRecordService;
        }
开发者ID:letmeproperty,项目名称:AutoMessaging,代码行数:10,代码来源:SubscriberService.cs



注:本文中的IPipeline类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPipelines类代码示例发布时间:2022-05-24
下一篇:
C# IPipe类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap