Task <bool> IPremiseObject.IsOfTypeAsync(IPremiseObject typeId) { var future = new IsOfTypeFuture(_objectId, (typeId as PremiseObject)?._objectId); _client.Send(future, out Task <bool> task); return(task); }
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); }