void Start() { api_ = new ironsource.IronSourceAtom(gameObject); api_.EnableDebug(true); api_.SetAuth(""); tracker_ = new ironsource.IronSourceAtomTracker(gameObject); tracker_.EnableDebug(true); tracker_.SetAuth(""); }
/// <summary> /// API Tracker constructor /// </summary> public IronSourceAtomTracker() { api_ = new IronSourceAtom(); eventPool_ = new EventTaskPool(taskWorkersCount_, taskPoolSize_); eventManager_ = new QueueEventManager(); streamData_ = new ConcurrentDictionary <string, string>(); random_ = new Random(); ThreadStart threadMethodHolder = new ThreadStart(this.EventWorker); eventWorkerThread_ = new Thread(threadMethodHolder); eventWorkerThread_.Start(); }
/// <summary> /// API Tracker constructor /// </summary> /// <param name="batchWorkersCount"> /// <see cref="int"/> task workers count /// </param> /// <param name="batchPoolSize"> /// <see cref="int"/> task pool size /// </param> public IronSourceAtomTracker(int batchWorkersCount = BATCH_WORKERS_COUNT_, int batchPoolSize = BATCH_POOL_SIZE_) { api_ = new IronSourceAtom(); eventPool_ = new BatchEventPool(batchWorkersCount, batchPoolSize); eventStorage_ = new QueueEventStorage(); streamData_ = new ConcurrentDictionary <string, string>(); random_ = new Random(); ThreadStart threadMethodHolder = new ThreadStart(this.TrackerHandler); trackerHandlerThread_ = new Thread(threadMethodHolder); trackerHandlerThread_.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="ironsource.IronSourceAtomTracker"/> class. /// </summary> /// <param name="gameObject"> /// Game object. /// </param> public IronSourceAtomTracker(GameObject gameObject) { api_ = new IronSourceAtom(gameObject); }