Category Archives: Uncategorized

Modifying SSRS Report on Export

Recently a client asked to add a logo and disclamer to all reports. Well, reports are hosted in a custom portal, which already displays a logo and disclamer takes too much space.  Without thinking of consequences I expressed this oppenion and got stuck with implementing it. I thought that Export button in the ReportViewer toolbar [...]

Posted in Uncategorized | Leave a comment

Asynchronous

[DebuggerStepThrough] public static Task SimpleBodyAsync() { <SimpleBodyAsync>d__0 d__ = new <SimpleBodyAsync>d__0(); d__.<>t__builder = AsyncTaskMethodBuilder.Create(); d__.MoveNext(); return d__.<>t__builder.Task; } [CompilerGenerated] [StructLayout(LayoutKind.Sequential)] private struct <SimpleBodyAsync>d__0 : <>t__IStateMachine { private int <>1__state; public AsyncTaskMethodBuilder <>t__builder; public Action <>t__MoveNextDelegate;   public void MoveNext() { try { if (this.<>1__state == -1) return; Console.WriteLine(“Hello, Async World!”); } catch (Exception e) { [...]

Posted in Uncategorized | Leave a comment

.NET Authorization

<allow (or <deny) users=”comma-separated list of users” roles=”comma-separated list of roles” verbs=”comma-separated list of verbs” /> Two special identities: * Refers to all identities ? Refers to the anonymous identity Typical scenario, when you need to allow some roles, but not any authenticated users you will write: <allow roles=”someusers, administrators”/> <deny users=”*” /> The order [...]

Posted in Uncategorized | 3 Comments