Beispiel #1
0
 public static void Register(IEventTrace et)
 {
     FrameEventId   = et.Register("Frame", Color.Orange);
     UpdateEventId  = et.Register("Update", Color.Blue);
     PhysicsEventId = et.Register("Physics", Color.Cyan);
     DrawEventId    = et.Register("Draw", Color.Red);
 }
Beispiel #2
0
 public static void Register(IEventTrace et)
 {
     FrameEventId = et.Register("Frame", Color.Orange);
     UpdateEventId = et.Register("Update", Color.Blue);
     PhysicsEventId = et.Register("Physics", Color.Cyan);
     DrawEventId = et.Register("Draw", Color.Red);
 }
 public static EventTraceEntity CreateCoinEntity(IEventTrace trace)
 {
     return(new EventTraceEntity
     {
         RowKey = trace.TraceDate.ToString("o", CultureInfo.InvariantCulture),
         PartitionKey = GetPartitionKey(trace.OperationId),
         OperationId = trace.OperationId,
         Note = trace.Note
     });
 }
        public async Task InsertAsync(IEventTrace trace)
        {
            var entity = EventTraceEntity.CreateCoinEntity(trace);

            await _table.InsertOrReplaceAsync(entity);
        }
Beispiel #5
0
 }                                                                            //HERE IS THE CHANGE
 public OidcLoginWebPageModel(ICoreDataRepository repository, ILoginProvider loginProvider, ICache cache, IEventTrace trace, IUsageTimer usageTimer, IPlatform platform)
     : base(loginProvider, cache, trace, usageTimer, platform)
 {
 }
Beispiel #6
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            et = new EventTrace(this);
            TraceEvents.Register(et);

            testCount = 0;
            while (TestEntries.g_testEntries[testCount].createFcn != null)
            {
                ++testCount;
            }

            testIndex = MathUtils.Clamp(testIndex, 0, testCount - 1);
            testSelection = testIndex;

            entry = TestEntries.g_testEntries[testIndex];
            test = entry.createFcn();
        }