Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
 }