protected override void SaveState(IApplicationStateService applicationStateService) { base.SaveState(applicationStateService); applicationStateService.Set(nameof(this.StartDate), this.StartDate, ApplicationState.Temp); applicationStateService.Set(nameof(this.EndDate), this.EndDate, ApplicationState.Temp); }
protected override void SaveState(IApplicationStateService applicationStateService) { base.SaveState(applicationStateService); applicationStateService.Set("Thingy", 123, ApplicationState.Local); }
public static void SetUsername(this IApplicationStateService self, string username) { self.Set("Username", username, AState.Roaming); }
public static void SetPassword(this IApplicationStateService self, string password) { self.Set("Password", password, AState.Vault); }
public static void SetWebServiceAddress(this IApplicationStateService self, string webServiceAddress) { self.Set("WebServiceAddress", webServiceAddress, AState.Roaming); }