// Returns an IContextManager based on the context type passed into the // function. public static IContextManager CreateContextManager(ContextType contextType, string contextStoreLocation, EndpointAddress endpointAddress) { IContextManager contextManager = null; switch (contextType) { case ContextType.HttpCookie: contextManager = new HttpCookieContextManager(contextStoreLocation, endpointAddress); break; case ContextType.MessageHeader: contextManager = new MessageHeaderContextManager(contextStoreLocation, endpointAddress); break; default: break; } return(contextManager); }
// Returns an IContextManager based on the context type passed into the // function. public static IContextManager CreateContextManager(ContextType contextType, string contextStoreLocation, EndpointAddress endpointAddress) { IContextManager contextManager = null; switch (contextType) { case ContextType.HttpCookie: contextManager = new HttpCookieContextManager(contextStoreLocation, endpointAddress); break; case ContextType.MessageHeader: contextManager = new MessageHeaderContextManager(contextStoreLocation, endpointAddress); break; default: break; } return contextManager; }