public virtual TheSaucisseFactory.IllustrationCollection PageLoadByChallenge(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string challengeEntityKey)
 {
     if ((challengeEntityKey == null))
     {
         throw new System.ArgumentNullException("challengeEntityKey");
     }
     TheSaucisseFactory.Challenge challenge = TheSaucisseFactory.Challenge.LoadByEntityKey(challengeEntityKey);
     return TheSaucisseFactory.IllustrationCollection.PageLoadByChallenge(pageIndex, pageSize, pageOptions, challenge);
 }
Пример #2
0
 public virtual TheSaucisseFactory.MesureCollection PageLoadByAppartement(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string appartementEntityKey)
 {
     if ((appartementEntityKey == null))
     {
         throw new System.ArgumentNullException("appartementEntityKey");
     }
     TheSaucisseFactory.Appartement appartement = TheSaucisseFactory.Appartement.LoadByEntityKey(appartementEntityKey);
     return TheSaucisseFactory.MesureCollection.PageLoadByAppartement(pageIndex, pageSize, pageOptions, appartement);
 }
Пример #3
0
 public virtual TheSaucisseFactory.CommerceCollection PageLoadCommercesPublicitesByMedia(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string mediaEntityKey)
 {
     if ((mediaEntityKey == null))
     {
         throw new System.ArgumentNullException("mediaEntityKey");
     }
     TheSaucisseFactory.Media media = TheSaucisseFactory.Media.LoadByEntityKey(mediaEntityKey);
     return TheSaucisseFactory.CommerceCollection.PageLoadCommercesPublicitesByMedia(pageIndex, pageSize, pageOptions, media);
 }
Пример #4
0
 public virtual TheSaucisseFactory.BatimentCollection PageLoadByResidence(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string residenceEntityKey)
 {
     if ((residenceEntityKey == null))
     {
         throw new System.ArgumentNullException("residenceEntityKey");
     }
     TheSaucisseFactory.Residence residence = TheSaucisseFactory.Residence.LoadByEntityKey(residenceEntityKey);
     return TheSaucisseFactory.BatimentCollection.PageLoadByResidence(pageIndex, pageSize, pageOptions, residence);
 }
 public override string GetMessage(System.Globalization.CultureInfo culture, CodeFluent.Runtime.Rules.ValueValidator validator, string failureCode, object[] arguments)
 {
     string baseMessage = base.GetMessage(culture, validator, failureCode, arguments);
     string code = this.GetCode(validator, failureCode);
     string message = SoftFluent.Samples.SignalR.Proxy.Resources.Manager.GetString(culture, code, arguments);
     if ((message == code))
     {
         return baseMessage;
     }
     return message;
 }
Пример #6
0
 CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage CodeFluent.Runtime.BinaryServices.ICodeFluentBinaryService.Save(CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage request)
 {
     if ((request == null))
     {
         throw new System.ArgumentNullException("request");
     }
     if ((request.PropertyName == "Fichier"))
     {
         return this.SaveFichier(request);
     }
     throw new System.NotSupportedException();
 }
 protected virtual void ReadRecord(System.Data.IDataReader reader, CodeFluent.Runtime.CodeFluentReloadOptions options)
 {
     if ((reader == null))
     {
         throw new System.ArgumentNullException("reader");
     }
     if ((((options & CodeFluent.Runtime.CodeFluentReloadOptions.Properties) 
                 == 0) 
                 == false))
     {
         this._fullName = CodeFluentPersistence.GetReaderValue(reader, "Customer_FullName", ((string)(default(string))));
         this._dateOfBirth = CodeFluentPersistence.GetReaderValue(reader, "Customer_DateOfBirth", ((System.DateTime)(CodeFluentPersistence.DefaultDateTimeValue)));
     }
 }
Пример #8
0
		protected override void OnSessionClose(object ctx, CodeFluent.Runtime.BinaryServices.Session session)
        {
            if (ctx == null)
                throw new System.ArgumentNullException("ctx");

            if (session == null)
                throw new System.ArgumentNullException("session");

            if (!OnSessionChange(session, CodeFluent.Runtime.BinaryServices.SessionChangeType.Closing, ctx, true, null))
                return;

            System.Net.HttpListenerContext context = (System.Net.HttpListenerContext)ctx;
            
            string entityTypeName;
            string propertyName;
            string entityKey;
            ParseUri(context.Request.Url, out entityTypeName, out propertyName, out entityKey);
            OnSessionClose(context, session, entityTypeName, propertyName, entityKey);
            OnSessionChange(session, CodeFluent.Runtime.BinaryServices.SessionChangeType.Closed, ctx, false, null);
        }
 public virtual ContactManager.UserCollection PageLoadAll(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions)
 {
     return ContactManager.UserCollection.PageLoadAll(pageIndex, pageSize, pageOptions);
 }
Пример #10
0
 public virtual ContactManager.UserCollection PageSearch(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, int id, string email, string firstName, string lastName)
 {
     return ContactManager.UserCollection.PageSearch(pageIndex, pageSize, pageOptions, id, email, firstName, lastName);
 }
Пример #11
0
        protected virtual void OnSessionClose(System.Net.HttpListenerContext context, CodeFluent.Runtime.BinaryServices.Session session, string entityTypeName, string propertyName, string entityKey)
        {
			
			if (entityTypeName == "SoftFluent.Samples.ComponentOne.User")
			{
				
				if (propertyName == "Photo")
				{
					SoftFluent.Samples.ComponentOne.User entity = SoftFluent.Samples.ComponentOne.User.LoadByEntityKey(entityKey);
					if (entity != null)
					{
						CloseSession(context, entity.Photo, session);
						return;
					}
				}
				
			}
			
			throw new System.InvalidOperationException(SoftFluent.Samples.ComponentOne.Resources.Manager.GetStringWithDefault("bitsServerInvalidUrl", "Invalid url '{0}'.", new object[]{context.Request.Url}));
        }
 public virtual TheSaucisseFactory.GainEnergyCoinCollection PageLoadAll(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions)
 {
     return TheSaucisseFactory.GainEnergyCoinCollection.PageLoadAll(pageIndex, pageSize, pageOptions);
 }
Пример #13
0
		public SoftFluent_Json_NETBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #14
0
		public SoftFluent_Samples_Thinktecture_IdentityServerBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #15
0
 public TheSaucisseFactoryBitsServer(CodeFluent.Runtime.CodeFluentContext context)
     : base(context)
 {
 }
Пример #16
0
        protected virtual void OnSessionClose(System.Net.HttpListenerContext context, CodeFluent.Runtime.BinaryServices.Session session, string entityTypeName, string propertyName, string entityKey)
        {
            if (entityTypeName == "TheSaucisseFactory.Media")
            {

                if (propertyName == "Fichier")
                {
                    TheSaucisseFactory.Media entity = TheSaucisseFactory.Media.LoadByEntityKey(entityKey);
                    if (entity != null)
                    {
                        CloseSession(context, entity.Fichier, session);
                        return;
                    }
                }

            }

            throw new System.InvalidOperationException(TheSaucisseFactory.Resources.Manager.GetStringWithDefault("bitsServerInvalidUrl", "Invalid url '{0}'.", new object[]{context.Request.Url}));
        }
Пример #17
0
 public virtual CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage LoadFichier(CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage request)
 {
     if ((request == null))
     {
         throw new System.ArgumentNullException("request");
     }
     TheSaucisseFactory.Media media = TheSaucisseFactory.Media.LoadByEntityKey(request.EntityKey);
     if ((media == null))
     {
         return new CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage(request);
     }
     return MediaService._cf_rt_wcfServer.Load(media.Fichier, request);
 }
 public virtual SoftFluent.Samples.SignalR.CustomerCollection PageLoadAll(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions)
 {
     return SoftFluent.Samples.SignalR.CustomerCollection.PageLoadAll(pageIndex, pageSize, pageOptions);
 }
 public virtual TheSaucisseFactory.GainEnergyCoinCollection PageLoadByAppartementDateRange(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string appartementEntityKey, System.DateTime date)
 {
     if ((appartementEntityKey == null))
     {
         throw new System.ArgumentNullException("appartementEntityKey");
     }
     TheSaucisseFactory.Appartement appartement = TheSaucisseFactory.Appartement.LoadByEntityKey(appartementEntityKey);
     return TheSaucisseFactory.GainEnergyCoinCollection.PageLoadByAppartementDateRange(pageIndex, pageSize, pageOptions, appartement, date);
 }
Пример #20
0
		public SoftFluent_Samples_StoreEnumAsTextBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #21
0
		public SoftFluent_Samples_SignalRBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #22
0
		public SoftFluent_Samples_EncryptAspectBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #23
0
        protected virtual void OnSessionClose(System.Net.HttpListenerContext context, CodeFluent.Runtime.BinaryServices.Session session, string entityTypeName, string propertyName, string entityKey)
        {
			
			throw new System.InvalidOperationException(SoftFluent.Samples.SignalR.Resources.Manager.GetStringWithDefault("bitsServerInvalidUrl", "Invalid url '{0}'.", new object[]{context.Request.Url}));
        }
Пример #24
0
		public SoftFluent_Samples_AspNetIdentity1BitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #25
0
		public SoftFluent_Samples_ComponentOneBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #26
0
		public SoftFluent_Samples_RedisCacheBitsServer(CodeFluent.Runtime.CodeFluentContext context)
			:base(context)
		{
		}
Пример #27
0
 public virtual CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage SavePhoto(CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage request)
 {
     if ((request == null))
     {
         throw new System.ArgumentNullException("request");
     }
     ContactManager.User user = ContactManager.User.LoadByEntityKey(request.EntityKey);
     if ((user == null))
     {
         return new CodeFluent.Runtime.BinaryServices.BinaryLargeObjectMessage(request);
     }
     return UserService._cf_rt_wcfServer.Save(user.Photo, request);
 }
Пример #28
0
 public virtual TheSaucisseFactory.MediaCollection PageLoadPublicitesCommercesByCommerce(int pageIndex, int pageSize, CodeFluent.Runtime.PageOptions pageOptions, string commerceEntityKey)
 {
     if ((commerceEntityKey == null))
     {
         throw new System.ArgumentNullException("commerceEntityKey");
     }
     TheSaucisseFactory.Commerce commerce = TheSaucisseFactory.Commerce.LoadByEntityKey(commerceEntityKey);
     return TheSaucisseFactory.MediaCollection.PageLoadPublicitesCommercesByCommerce(pageIndex, pageSize, pageOptions, commerce);
 }
Пример #29
0
 public static string GetUserMessage(System.Globalization.CultureInfo culture, CodeFluent.Runtime.UserExceptionType type, string name, params object[] args)
 {
     string code = string.Concat(CodeFluent.Runtime.CodeFluentRuntimeException.UserMessagePrefix, ".", type.ToString(), ".", name);
     Manager loader = Manager.GetLoader();
     string str = loader._resources.GetString(code, culture);
     if ((str == null))
     {
         code = string.Concat(CodeFluent.Runtime.CodeFluentRuntimeException.UserMessagePrefix, ".", type.ToString());
         str = loader._resources.GetString(code, culture);
         if ((str == null))
         {
             str = CodeFluent.Runtime.CodeFluentRuntimeException.GetUserMessage(culture, type, args);
         }
     }
     if ((args != null))
     {
         return string.Format(culture, str, args);
     }
     else
     {
         return str;
     }
 }
Пример #30
0
 public SoftFluent_Samples_ExtendedSearchBitsServer(CodeFluent.Runtime.CodeFluentContext context)
     : base(context)
 {
 }