Exemple #1
0
        Task <bool> IPremiseObject.IsOfTypeAsync(IPremiseObject typeId)
        {
            var future = new IsOfTypeFuture(_objectId, (typeId as PremiseObject)?._objectId);

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

            var future = new IsOfTypeFuture(_objectId, typeId);

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