Exemple #1
0
        Task <IPremiseObject> IPremiseObject.SetClassAsync(IPremiseObject classObject)
        {
            var future = new SetClassFuture(_objectId, (classObject as PremiseObject)?._objectId);

            _client.Send(future, out Task <IPremiseObject> task);
            return(task);
        }
Exemple #2
0
        Task <IPremiseObject> IPremiseObject.SetClassAsync(string classObjectId)
        {
            if (string.IsNullOrEmpty(classObjectId))
            {
                throw new ArgumentNullException(nameof(classObjectId));
            }

            var future = new SetClassFuture(_objectId, classObjectId);

            _client.Send(future, out Task <IPremiseObject> task);
            return(task);
        }