Source/NFX/Collections/NamedInterlocked.cs
/// <summary>
/// Records a snapshot of all longs converted into TDatum. The TDatum must have a public .ctor(string, long) or runtime exception is thrown
/// (this is because C# does not have a contract/constraint for parameterized cosntructors)
/// </summary>
Records a snapshot of all longs converted into TDatum. The TDatum must have a public .ctor(string, long) or runtime exception is thrown
(this is because C# does not have a contract/constraint for parameterized cosntructors)
Records a snapshot of all longs converted into TDatum . The TDatum must have a public . ctor ( string long ) or runtime exception is thrown ( this is because C# does not have a contract / constraint for parameterized cosntructors )
public void SnapshotAllLongsInto<TDatum>(long? exchange = null, Instrumentation.IInstrumentation instrumentation = null) where TDatum : Instrumentation.Datum
      {
        if (instrumentation==null) instrumentation = App.Instrumentation;
        foreach(var slot in SnapshotAllLongs(exchange))
        {
          var datum = (Instrumentation.Datum)Activator.CreateInstance(typeof(TDatum), slot.Key, slot.Value);
          instrumentation.Record( datum );
        }
      }
public void SnapshotAllLongsInto < TDatum > ( long ? exchange = null , Instrumentation . IInstrumentation instrumentation = null ) where TDatum : Instrumentation . Datum { if ( instrumentation == null ) instrumentation = App . Instrumentation ; foreach ( var slot in SnapshotAllLongs ( exchange ) ) { var datum = ( Instrumentation . Datum ) Activator . CreateInstance ( typeof ( TDatum ) , slot . Key , slot . Value ) ; instrumentation . Record ( datum ) ; } }
Records a snapshot of all longs converted into TDatum.
Records a snapshot of all longs converted into TDatum .
exchange
long?
instrumentation
Instrumentation.IInstrumentation