public ServiceBusNamespaceAvailabilityResponse EndIsServiceBusNamespaceAvailable(IAsyncResult asyncResult)
        {
            ServiceBusNamespaceAvailabilityResponse availabilityResponse = new ServiceBusNamespaceAvailabilityResponse();

            if (IsServiceBusNamespaceAvailableThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                availabilityResponse = IsServiceBusNamespaceAvailableThunk(result);
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("IsServiceBusNamespaceAvailableThunk is not implemented!");
            }

            return availabilityResponse;
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            ServiceBusNamespaceAvailabilityResponse rhs = obj as ServiceBusNamespaceAvailabilityResponse;

            return(this.Result.Equals(rhs.Result));
        }