/// <summary> /// Creates an instance of this class for use with making API /// Calls /// </summary> /// <param name="state">the authorization state required to make the API Calls</param> public ShopifyAPIContext(ShopifyAuthorizationState state) { this.State = state; SetUpResources(); }
/// <summary> /// Creates an instance of this class for use with making API /// Calls /// </summary> /// <param name="state">the authorization state required to make the API Calls</param> /// <param name="translator">the translator used to transform the data between your C# client code and the Shopify API</param> public ShopifyAPIContext(ShopifyAuthorizationState state, IDataTranslator translator) { this.State = state; this.Translator = translator; SetUpResources(); }
/// <summary> /// /// </summary> /// <param name="sessionState"></param> /// <param name="state"></param> public static void SetAuthorization(System.Web.HttpContextBase httpContext, ShopifyAuthorizationState state) { httpContext.Session[AuthSessionKey] = state; }