Bureaucrat Job Class, Seriously

I was looking through some code and found this class recently.  It almost reminds me of a class I saw called a speed up loop.  This however, is obviously more important to the grand scheme of politics eh!

public class BureaucratJob : IJob
{
    readonly ITradeReconciler reconciler;
    readonly ICalculationQueue queue;
    ILog log;
        
    public BureaucratJob(ITradeReconciler reconciler, ICalculationQueue queue)
    {
        this.reconciler = reconciler;
        this.queue = queue;
    }

    public void RedTape(object[] formsInTriplicate)
    {
        // intentionally doing nothing, just like any good ol American Bureaucrat!
    }

    public void Execute(JobExecutionContext context)
    {
        RedTape(new[] { "formsInTriplicate", "formsInTriplicate", "formsInTriplicate" });

        log = LogManager.GetLogger(typeof(BureaucratJob));
        log.Info(string.Format("Job Executing, it's currently {0} and all is well", DateTime.Now));

        log.Info("Reconciliation is starting.");
            
        var work = IoC.Resolve<IUnitOfWorkManager>();

        work.Begin();
            
        reconciler.Go();

        log.Info("Reconciliation has finished.  Calculation queue is now processing.");

        queue.Process();

        work.Commit();
        work.Complete();

        log.Info("Calculation queue is queued out n' done.");
    }
}

Hope you enjoyed the code read. :) Cheers!

Shout it

1 comment
  1. Pingback: DotNetShoutout

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

midnight mystery ride

at midnight, we ride.

Riding on Roadways

Writing on Riding on Roadways

Not Rich Yet

It's going to happen. Gotta find something to do until then.

Portland Transit Lane - The Untold Stories of Transit In Portland

“So over you is the greatest enemy a man can have and that is fear. I know some of you are afraid to listen to the truth—you have been raised on fear and lies. But I am going to preach to you the truth until you are free of that fear…” — Malcolm X

craftedincarhartt

Carhartt Women's Blog

heydev

For the love of code

Nathan Evans' Nemesis of the Moment

My nemesis of the moment

Open Source Bridge: Presentation Proposals

Snippets, software architecture, lean, agile, management, and leadership bits.

Captured Refractions

A collection of my latest adventures, past reflections and other photos.

for the love of Nike

for the love of Nike

The Cloud Dev

Developing {for/ on/ the} Cloud...

Project Manager in a Cloudy IT World

Thoughts, comments and ideas from experiences as a Project Manager in IT

iBikeuBike

If I can bike... So can you!

MAX FAQs

Portland Light Rail

UX Success

User Experience Design, Agile Development, Lean UX, Start Up

The lost outpost

a weblog by Andy Piper about technology, photography, and life

SaintGimp

Agile development, software craftsmanship, continuous improvement - Eric Lee's blog

Clang and Clamour

pardon the construction noises while we build the internet

Kristen Mozian

social {good} design + experience

RightScale Blog

Cloud Management News & Conversations

Follow

Get every new post delivered to your Inbox.

Join 5,492 other followers

%d bloggers like this: