internal Telemetry(TelemetryApi api, User user, string clientId,
                           AsyncTaskDispatcher taskDispatcher, CoroutineRunner coroutineRunner)
        {
            Assert.IsNotNull(api, "Can't construct purchase manager! PurchaseService parameter is null!");
            Assert.IsNotNull(user, "Can't construct purchase manager! UserAccount parameter is null!");
            Assert.IsNotNull(clientId, "clientId must not be null");
            Assert.IsNotNull(taskDispatcher, "taskReactor must not be null");
            Assert.IsNotNull(coroutineRunner, "coroutineRunner must not be null");

            this.api             = api;
            this.user            = user;
            this.clientId        = clientId;
            this.taskDispatcher  = taskDispatcher;
            this.coroutineRunner = coroutineRunner;
        }
Exemple #2
0
        internal Telemetry(TelemetryApi api, ISession session, string @namespace, string clientId,
                           CoroutineRunner coroutineRunner)
        {
            Assert.IsNotNull(api, "api parameter can not be null.");
            Assert.IsNotNull(session, "session parameter can not be null");
            Assert.IsFalse(string.IsNullOrEmpty(@namespace), "ns paramater couldn't be empty");
            Assert.IsFalse(string.IsNullOrEmpty(clientId), "clientId paramater couldn't be empty");
            Assert.IsNotNull(coroutineRunner, "coroutineRunner parameter can not be null. Construction failed");

            this.api             = api;
            this.session         = session;
            this.@namespace      = @namespace;
            this.clientId        = clientId;
            this.coroutineRunner = coroutineRunner;
        }