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; }
public override bool Equals(object obj) { ServiceBusNamespaceAvailabilityResponse rhs = obj as ServiceBusNamespaceAvailabilityResponse; return(this.Result.Equals(rhs.Result)); }