Skip to content

Instantly share code, notes, and snippets.

@mgonzales3
mgonzales3 / Program.cs
Created November 15, 2023 18:01 — forked from madcodemonkey/Program.cs
Generate SSRS report using WCF in .NET Core Application
using ServiceReference1;
using System;
using System.Collections.Generic;
using System.IO;
using System.ServiceModel;
using System.Threading.Tasks;
namespace SSRSSimple
{
class Program
static void minMax(int[] arr)
{
List<int> nbrs = new List<int>();
List<long> result = new List<long>();
foreach (int i in arr)
nbrs.Add(i);
nbrs.Sort();
/*
Currently EWS returns strings with the declaration in the wrong place. This file fixes that.
*/
public class TraceListener : ITraceListener
{
public void Trace(string traceType, string traceMessage)
{
CreateXMLTextFile(traceType, traceMessage.ToString());
}
@mgonzales3
mgonzales3 / Zipper.cs
Created March 13, 2015 14:43
ZipArchive in Folder
/*
Script for zipping a list of xml files
*/
private void CreateZipPackage()
{
String zipDir = AppDomain.CurrentDomain.BaseDirectory + @"zips\";
DirectoryInfo di = new DirectoryInfo(zipDir);
foreach (var file in di.GetFiles("*.xml"))
{