Dev2.Diagnostics.JsonDebugProvider.GetDebugStates C# (CSharp) Method

GetDebugStates() public method

public GetDebugStates ( string serverWebUri, DirectoryPath directory, FilePath filePath ) : IEnumerable
serverWebUri string
directory DirectoryPath
filePath FilePath
return IEnumerable
        public IEnumerable<IDebugState> GetDebugStates(string serverWebUri, DirectoryPath directory, FilePath filePath)
        {
            var webclient = new WebClient { Credentials = CredentialCache.DefaultCredentials };
            var address = String.Format(serverWebUri + "{0}/{1}?DirectoryPath={2}&FilePath={3}",
                "Services", "DebugStateService", directory.PathToSerialize, filePath.Title);
            var datalistJson = webclient.UploadString(address, string.Empty);
            return JsonConvert.DeserializeObject<IList<DebugState>>(datalistJson);
        }

Same methods

JsonDebugProvider::GetDebugStates ( string serverWebUri, IDirectoryPath directory, IFilePath path ) : IEnumerable
JsonDebugProvider