コード例 #1
0
ファイル: EventContext.cs プロジェクト: LJM74520/nice
 public static IDisposable BeginOperation(long?operationId)
 {
     return(OperationId == null ?
            (IDisposable) new OperationIdDisposer(operationId ?? LongIdGenerator <OperationIdDisposer> .GetNextId()) :
            NoOpDisposer.Instance);
 }
コード例 #2
0
 public ConcreteProduct(ProductBase product)
 {
     ProductId = LongIdGenerator.Increment();
     Product   = product;
 }