コード例 #1
0
ファイル: ContextFactory.cs プロジェクト: orf53975/hadoop.net
 /// <summary>Returns a "null" context - one which does nothing.</summary>
 public static MetricsContext GetNullContext(string contextName)
 {
     lock (typeof(ContextFactory))
     {
         MetricsContext nullContext = nullContextMap[contextName];
         if (nullContext == null)
         {
             nullContext = new NullContext();
             nullContextMap[contextName] = nullContext;
         }
         return(nullContext);
     }
 }
コード例 #2
0
ファイル: Help.cs プロジェクト: he-dev/reusable
        protected override Task ExecuteAsync(ICommandLineReader <IHelpParameter> parameter, NullContext context, CancellationToken cancellationToken)
        {
            var commandSelected = parameter.GetItem(x => x.Command).IsNotNullOrEmpty();

            if (commandSelected)
            {
                RenderParameterList(parameter);
            }
            else
            {
                RenderCommandList(parameter);
            }

            return(Task.CompletedTask);
        }
コード例 #3
0
ファイル: CommandBase.cs プロジェクト: mikalai-kardash/ccl
 protected CommandBase()
 {
     Context = new NullContext();
 }
コード例 #4
0
 public DependenteRepository(NullContext nullContext)
 {
     _context = nullContext;
 }
コード例 #5
0
 public FaseRepository(NullContext nullContext)
 {
     _context = nullContext;
 }
コード例 #6
0
ファイル: NullContext.cs プロジェクト: zephyrInk/VSTOContrib
 static NullContext()
 {
     Instance = new NullContext();
 }
コード例 #7
0
 public UsuarioRepository(NullContext nullContext)
 {
     _context = nullContext;
 }
コード例 #8
0
 public CandidatoCadastroRepository(NullContext nullContext)
 {
     _context = nullContext;
 }
コード例 #9
0
 public override void EnterNull([NotNull] NullContext context)
 {
     base.EnterNull(context);
 }
コード例 #10
0
 public CandidatoInfoRepository(NullContext nullContext)
 {
     _context = nullContext;
 }