public void SetUp()
 {
     var configure = new MongoConfigurationBuilder();
     configure.ConnectionStringAppSettingKey("mongoserver");
     config = configure.BuildConfiguration();
     SessionStateItemCollection sessionItemsCollection = new SessionStateItemCollection();
     HttpStaticObjectsCollection staticObjectsCollection = new HttpStaticObjectsCollection();
     item = new SessionStateStoreData(sessionItemsCollection, staticObjectsCollection, 1);
 }
        static void Main(string[] args)
        {
            OptionSet options = new OptionSet(){
            {"i|inspect_sessions", i => InspectSessions()},
            {"fe|flush_expired", fe => FlushExpiredSession()},
            {"aix|add_indexes", aix => AddIndexes()},
            {"?|h|help", h => ShowHelp()}};

            try
            {
                var configure = new MongoConfigurationBuilder();
                configure.ConnectionStringAppSettingKey("mongoserver");
                var config = configure.BuildConfiguration();
                options.Parse(args);
            }
            catch (OptionException e)
            {
                Console.WriteLine(e.Message);
                return;
            }

        }
 private SessionStore()
 {
     configure = new MongoConfigurationBuilder();
     configure.ConnectionStringAppSettingKey("mongoserver");
     config = configure.BuildConfiguration();
 }
 public void SetUp()
 {
     var configure = new MongoConfigurationBuilder();
     configure.ConnectionStringAppSettingKey("mongoserver");           
     config = configure.BuildConfiguration();
 }