Browse files

Changed license to Apache 2.0.

  • Loading branch information...
1 parent 823a686 commit 515eaa91e8ca73206b5568ede8f80ae4e61165e4 @enyim enyim committed Mar 15, 2010
Showing with 1,555 additions and 1,838 deletions.
  1. +2 −2 DemoApp/Properties/AssemblyInfo.cs
  2. +21 −1 Enyim.Caching/Configuration/AuthenticationConfiguration.cs
  3. +14 −16 Enyim.Caching/Configuration/AuthenticationElement.cs
  4. +15 −17 Enyim.Caching/Configuration/ConfigurationHelper.cs
  5. +15 −17 Enyim.Caching/Configuration/EndPointElement.cs
  6. +15 −17 Enyim.Caching/Configuration/EndPointElementCollection.cs
  7. +15 −17 Enyim.Caching/Configuration/IAuthenticationConfiguration.cs
  8. +15 −17 Enyim.Caching/Configuration/IMemcachedClientConfiguration.cs
  9. +15 −17 Enyim.Caching/Configuration/ISocketPoolConfiguration.cs
  10. +15 −17 Enyim.Caching/Configuration/InterfaceValidator.cs
  11. +15 −17 Enyim.Caching/Configuration/MemcachedClientConfiguration.cs
  12. +15 −17 Enyim.Caching/Configuration/MemcachedClientSection.cs
  13. +21 −1 Enyim.Caching/Configuration/SocketPoolConfiguration.cs
  14. +14 −16 Enyim.Caching/Configuration/SocketPoolElement.cs
  15. +15 −17 Enyim.Caching/FastActivator.cs
  16. +15 −17 Enyim.Caching/FnvHash.cs
  17. +16 −18 Enyim.Caching/HashCodeCombiner.cs
  18. +15 −17 Enyim.Caching/IFastObjectFacory.cs
  19. +16 −18 Enyim.Caching/InterlockedQueue.cs
  20. +0 −32 Enyim.Caching/License.html
  21. +16 −18 Enyim.Caching/Memcached/Authentication/PlainTextAuthenticator.cs
  22. +16 −18 Enyim.Caching/Memcached/CommandNotSupportedException.cs
  23. +15 −17 Enyim.Caching/Memcached/DefaultNodeLocator.cs
  24. +16 −18 Enyim.Caching/Memcached/Enums.cs
  25. +16 −18 Enyim.Caching/Memcached/IAuthenticator.cs
  26. +15 −17 Enyim.Caching/Memcached/IMemcachedKeyTransformer.cs
  27. +21 −1 Enyim.Caching/Memcached/IMemcachedNode.cs
  28. +15 −17 Enyim.Caching/Memcached/IMemcachedNodeLocator.cs
  29. +16 −18 Enyim.Caching/Memcached/IProtocolImplementation.cs
  30. +16 −18 Enyim.Caching/Memcached/ISaslAuthenticationProvider.cs
  31. +16 −18 Enyim.Caching/Memcached/IServerPool.cs
  32. +0 −425 Enyim.Caching/Memcached/InstancePerformanceCounters.cs
  33. +0 −57 Enyim.Caching/Memcached/InstancePerformanceCountersInstaller.cs
  34. +15 −17 Enyim.Caching/Memcached/KetamaNodeLocator.cs
  35. +15 −17 Enyim.Caching/Memcached/KeyTransformers/Base64KeyTransformer.cs
  36. +15 −17 Enyim.Caching/Memcached/KeyTransformers/DefaultKeyTransformer.cs
  37. +16 −18 Enyim.Caching/Memcached/KeyTransformers/KeyTransformerBase.cs
  38. +15 −17 Enyim.Caching/Memcached/KeyTransformers/SHA1KeyTransformer.cs
  39. +15 −17 Enyim.Caching/Memcached/KeyTransformers/TigerHashKeyTransformer.cs
  40. +16 −18 Enyim.Caching/Memcached/MemcachedClientException.cs
  41. +16 −18 Enyim.Caching/Memcached/MemcachedException.cs
  42. +16 −18 Enyim.Caching/Memcached/MemcachedNode.cs
  43. +16 −18 Enyim.Caching/Memcached/Operations/Binary/BinaryConverter.cs
  44. +15 −17 Enyim.Caching/Memcached/Operations/Binary/BinaryProtocol.cs
  45. +16 −18 Enyim.Caching/Memcached/Operations/Binary/BinaryRequest.cs
  46. +16 −18 Enyim.Caching/Memcached/Operations/Binary/BinaryResponse.cs
  47. +16 −18 Enyim.Caching/Memcached/Operations/Binary/ConcatenationOperation.cs
  48. +16 −18 Enyim.Caching/Memcached/Operations/Binary/DeleteOperation.cs
  49. +16 −18 Enyim.Caching/Memcached/Operations/Binary/FlushOperation.cs
  50. +16 −18 Enyim.Caching/Memcached/Operations/Binary/GetOperation.cs
  51. +16 −18 Enyim.Caching/Memcached/Operations/Binary/MultiGetOperation.cs
  52. +16 −18 Enyim.Caching/Memcached/Operations/Binary/MutatorOperation.cs
  53. +16 −18 Enyim.Caching/Memcached/Operations/Binary/OpCode.cs
  54. +16 −18 Enyim.Caching/Memcached/Operations/Binary/SaslAuthenticator.cs
  55. +16 −18 Enyim.Caching/Memcached/Operations/Binary/StatsOperation.cs
  56. +16 −18 Enyim.Caching/Memcached/Operations/Binary/StoreOperation.cs
  57. +16 −18 Enyim.Caching/Memcached/Operations/ItemOperation.cs
  58. +15 −17 Enyim.Caching/Memcached/Operations/Operation.cs
  59. +16 −18 Enyim.Caching/Memcached/Operations/Text/DecrementOperation.cs
  60. +16 −18 Enyim.Caching/Memcached/Operations/Text/DeleteOperation.cs
  61. +15 −17 Enyim.Caching/Memcached/Operations/Text/FlushOperation.cs
  62. +15 −17 Enyim.Caching/Memcached/Operations/Text/GetHelper.cs
  63. +16 −18 Enyim.Caching/Memcached/Operations/Text/GetOperation.cs
  64. +16 −18 Enyim.Caching/Memcached/Operations/Text/IncrementOperation.cs
  65. +15 −17 Enyim.Caching/Memcached/Operations/Text/MultiGetOperation.cs
  66. +15 −17 Enyim.Caching/Memcached/Operations/Text/StatsOperation.cs
  67. +16 −18 Enyim.Caching/Memcached/Operations/Text/StoreOperation.cs
  68. +15 −17 Enyim.Caching/Memcached/Operations/Text/TextProtocol.cs
  69. +16 −18 Enyim.Caching/Memcached/Operations/Text/TextSocketHelper.cs
  70. +16 −18 Enyim.Caching/Memcached/PooledSocket.cs
  71. +16 −18 Enyim.Caching/Memcached/ServerPool.cs
  72. +15 −17 Enyim.Caching/Memcached/ServerStats.cs
  73. +15 −17 Enyim.Caching/Memcached/SingleNodeLocator.cs
  74. +15 −17 Enyim.Caching/Memcached/StatItem.cs
  75. +16 −18 Enyim.Caching/Memcached/StoreMode.cs
  76. +16 −18 Enyim.Caching/Memcached/ThrowHelper.cs
  77. +15 −17 Enyim.Caching/Memcached/Transcoders/CacheItem.cs
  78. +15 −17 Enyim.Caching/Memcached/Transcoders/DefaultTranscoder.cs
  79. +15 −17 Enyim.Caching/Memcached/Transcoders/ITranscoder.cs
  80. +15 −17 Enyim.Caching/MemcachedClient.cs
  81. +17 −19 Enyim.Caching/Properties/AssemblyInfo.cs
  82. +15 −17 Enyim.Caching/UIntEqualityComparer.cs
  83. +202 −0 LICENSE
  84. +21 −1 MemcachedTest/BinaryMemcachedClientTest.cs
  85. +21 −1 MemcachedTest/ConfigTest.cs
  86. +21 −1 MemcachedTest/KetamaTest.cs
  87. +21 −1 MemcachedTest/MemcachedClientTest.cs
  88. +2 −2 MemcachedTest/Properties/AssemblyInfo.cs
  89. +21 −1 MemcachedTest/TextMemcachedClientTest.cs
  90. +19 −0 footer.txt
View
4 DemoApp/Properties/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("enyim.com")]
[assembly: AssemblyProduct("DemoApp")]
-[assembly: AssemblyCopyright("Copyright © enyim.com 2007")]
+[assembly: AssemblyCopyright("Copyright © enyim.com, Attila Kiskó 2007-2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
View
22 Enyim.Caching/Configuration/AuthenticationConfiguration.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -27,3 +27,23 @@ Type IAuthenticationConfiguration.Type
}
}
}
+
+#region [ License information ]
+/* ************************************************************
+ *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ************************************************************/
+#endregion
View
30 Enyim.Caching/Configuration/AuthenticationElement.cs
@@ -58,22 +58,20 @@ Type IAuthenticationConfiguration.Type
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
#endregion
View
32 Enyim.Caching/Configuration/ConfigurationHelper.cs
@@ -14,22 +14,20 @@ public static void CheckForInterface(Type type, Type interfaceType)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/EndPointElement.cs
@@ -93,22 +93,20 @@ public override void Validate(object value)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/EndPointElementCollection.cs
@@ -51,22 +51,20 @@ internal IList<IPEndPoint> ToIPEndPointCollection()
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/IAuthenticationConfiguration.cs
@@ -22,22 +22,20 @@ public interface IAuthenticationConfiguration
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/IMemcachedClientConfiguration.cs
@@ -49,22 +49,20 @@ public interface IMemcachedClientConfiguration
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/ISocketPoolConfiguration.cs
@@ -61,22 +61,20 @@ TimeSpan DeadTimeout
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/InterfaceValidator.cs
@@ -48,22 +48,20 @@ public override ConfigurationValidatorBase ValidatorInstance
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/MemcachedClientConfiguration.cs
@@ -151,22 +151,20 @@ MemcachedProtocol IMemcachedClientConfiguration.Protocol
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Configuration/MemcachedClientSection.cs
@@ -141,22 +141,20 @@ MemcachedProtocol IMemcachedClientConfiguration.Protocol
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
22 Enyim.Caching/Configuration/SocketPoolConfiguration.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -74,3 +74,23 @@ TimeSpan ISocketPoolConfiguration.DeadTimeout
}
}
}
+
+#region [ License information ]
+/* ************************************************************
+ *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ************************************************************/
+#endregion
View
30 Enyim.Caching/Configuration/SocketPoolElement.cs
@@ -107,22 +107,20 @@ TimeSpan ISocketPoolConfiguration.DeadTimeout
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
#endregion
View
32 Enyim.Caching/FastActivator.cs
@@ -295,22 +295,20 @@ .maxstack 8
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/FnvHash.cs
@@ -138,22 +138,20 @@ protected override byte[] HashFinal()
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/HashCodeCombiner.cs
@@ -1,4 +1,4 @@
-
+
namespace Enyim
{
/// <summary>
@@ -44,22 +44,20 @@ public static int Combine(int code1, int code2, int code3, int code4)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
- *
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
*
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/IFastObjectFacory.cs
@@ -14,22 +14,20 @@ public interface IFastMultiArgObjectFacory
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/InterlockedQueue.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading;
namespace Enyim.Collections
@@ -135,22 +135,20 @@ public Node(T value)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/License.html
@@ -1,32 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Microsoft Permissive License (Ms-PL)</title>
-</head>
-
-<body>
- <h1>Microsoft Permissive License (Ms-PL)</h1>
- <p><strong>This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.</strong></p>
-
- <h2>Definitions</h2>
- <p>The terms &#8220;reproduce,&#8221; &#8220;reproduction,&#8221; &#8220;derivative works,&#8221; and &#8220;distribution&#8221; have the same meaning here as under U.S. copyright law.</p>
- <p>A &#8220;contribution&#8221; is the original software, or any additions or changes to the software.</p>
- <p>A &#8220;contributor&#8221; is any person that distributes its contribution under this license.</p>
- <p>&#8220;Licensed patents&#8221; are a contributor’s patent claims that read directly on its contribution.</p>
-
- <h2>Grant of Rights</h2>
- <p>(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.</p>
- <p>(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.</p>
-
- <h2>Conditions and Limitations</h2>
- <p>(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.</p>
- <p>(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.</p>
- <p>(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.</p>
- <p>(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.</p>
- <p>(E) The software is licensed &#8220;as-is.&#8221; You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. </p>
-</body>
-
-</html>
View
34 Enyim.Caching/Memcached/Authentication/PlainTextAuthenticator.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Text;
@@ -49,22 +49,20 @@ private static byte[] CreateAuthData(string userName, string password)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/CommandNotSupportedException.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Enyim.Caching.Memcached
{
@@ -32,22 +32,20 @@ public class CommandNotSupportedException : MemcachedClientException
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/DefaultNodeLocator.cs
@@ -126,22 +126,20 @@ private static List<uint> GenerateKeys(IMemcachedNode node, int numberOfKeys)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/Enums.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Enyim.Caching.Memcached
{
@@ -9,22 +9,20 @@ public enum MemcachedProtocol { Binary, Text }
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/IAuthenticator.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Enyim.Caching.Memcached
{
@@ -10,22 +10,20 @@ public interface IAuthenticator
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/IMemcachedKeyTransformer.cs
@@ -17,22 +17,20 @@ public interface IMemcachedKeyTransformer
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
22 Enyim.Caching/Memcached/IMemcachedNode.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Net;
namespace Enyim.Caching.Memcached
@@ -11,3 +11,23 @@ public interface IMemcachedNode : IDisposable
PooledSocket Acquire();
}
}
+
+#region [ License information ]
+/* ************************************************************
+ *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ************************************************************/
+#endregion
View
32 Enyim.Caching/Memcached/IMemcachedNodeLocator.cs
@@ -23,22 +23,20 @@ public interface IMemcachedNodeLocator
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/IProtocolImplementation.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
namespace Enyim.Caching.Memcached
@@ -23,22 +23,20 @@ internal interface IProtocolImplementation : IDisposable
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/ISaslAuthenticationProvider.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
namespace Enyim.Caching.Memcached
{
@@ -17,22 +17,20 @@ public interface ISaslAuthenticationProvider
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/IServerPool.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
namespace Enyim.Caching.Memcached
@@ -23,22 +23,20 @@ public interface IServerPool : IDisposable
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
425 Enyim.Caching/Memcached/InstancePerformanceCounters.cs
@@ -1,425 +0,0 @@
-using System;
-using System.Configuration;
-using System.Diagnostics;
-
-namespace Enyim.Caching.Memcached
-{
- internal class InstancePerformanceCounters : IPerformanceCounters
- {
- private static InstancePerformanceCounters GlobalInstance = new InstancePerformanceCounters(String.Empty);
-
- private bool global;
- private string instanceName;
-
- private PerformanceCounter pcGet_Total;
- private PerformanceCounter pcGet_PerSec;
- private PerformanceCounter pcGet_Hits;
- private PerformanceCounter pcGet_Misses;
- private PerformanceCounter pcGet_HitRatio;
- private PerformanceCounter pcGet_HitRatioBase;
-
- private PerformanceCounter pcStore_Total;
- private PerformanceCounter pcStore_PerSec;
- private PerformanceCounter pcStore_Success;
-
- private PerformanceCounter pcAdd_Total;
- private PerformanceCounter pcAdd_PerSec;
- private PerformanceCounter pcAdd_Success;
-
- private PerformanceCounter pcReplace_Total;
- private PerformanceCounter pcReplace_PerSec;
- private PerformanceCounter pcReplace_Success;
-
- private PerformanceCounter pcAppend_Total;
- private PerformanceCounter pcAppend_PerSec;
- private PerformanceCounter pcAppend_Success;
-
- private PerformanceCounter pcPrepend_Total;
- private PerformanceCounter pcPrepend_PerSec;
- private PerformanceCounter pcPrepend_Success;
-
- private PerformanceCounter pcSet_Total;
- private PerformanceCounter pcSet_PerSec;
- private PerformanceCounter pcSet_Success;
-
- private PerformanceCounter pcCAS_Total;
- private PerformanceCounter pcCAS_PerSec;
- private PerformanceCounter pcCAS_Success;
-
- private PerformanceCounter pcDelete_Total;
- private PerformanceCounter pcDelete_PerSec;
- private PerformanceCounter pcDelete_Success;
-
- public InstancePerformanceCounters(MemcachedNode node) : this(node.EndPoint.ToString()) { }
-
- public InstancePerformanceCounters(string name)
- {
- this.global = String.IsNullOrEmpty(name);
- this.instanceName = this.global ? "_Total" : name;
-
- this.pcGet_Total = this.CreateCounter(Names.Get_Total);
- this.pcGet_PerSec = this.CreateCounter(Names.Get_PerSec);
- this.pcGet_Hits = this.CreateCounter(Names.Get_Hits);
- this.pcGet_Misses = this.CreateCounter(Names.Get_Misses);
- this.pcGet_HitRatio = this.CreateCounter(Names.Get_HitRatio);
- this.pcGet_HitRatioBase = this.CreateCounter(Names.Get_HitRatioBase);
-
- this.pcStore_Total = this.CreateCounter(Names.Store_Total);
- this.pcStore_PerSec = this.CreateCounter(Names.Store_PerSec);
- this.pcStore_Success = this.CreateCounter(Names.Store_Success);
-
- this.pcAdd_Total = this.CreateCounter(Names.Add_Total);
- this.pcAdd_PerSec = this.CreateCounter(Names.Add_PerSec);
- this.pcAdd_Success = this.CreateCounter(Names.Add_Success);
-
- this.pcReplace_Total = this.CreateCounter(Names.Replace_Total);
- this.pcReplace_PerSec = this.CreateCounter(Names.Replace_PerSec);
- this.pcReplace_Success = this.CreateCounter(Names.Replace_Success);
-
- this.pcAppend_Total = this.CreateCounter(Names.Append_Total);
- this.pcAppend_PerSec = this.CreateCounter(Names.Append_PerSec);
- this.pcAppend_Success = this.CreateCounter(Names.Append_Success);
-
- this.pcPrepend_Total = this.CreateCounter(Names.Prepend_Total);
- this.pcPrepend_PerSec = this.CreateCounter(Names.Prepend_PerSec);
- this.pcPrepend_Success = this.CreateCounter(Names.Prepend_Success);
-
- this.pcSet_Total = this.CreateCounter(Names.Set_Total);
- this.pcSet_PerSec = this.CreateCounter(Names.Set_PerSec);
- this.pcSet_Success = this.CreateCounter(Names.Set_Success);
-
- this.pcCAS_Total = this.CreateCounter(Names.CAS_Total);
- this.pcCAS_PerSec = this.CreateCounter(Names.CAS_PerSec);
- this.pcCAS_Success = this.CreateCounter(Names.CAS_Success);
-
- this.pcDelete_Total = this.CreateCounter(Names.Delete_Total);
- this.pcDelete_PerSec = this.CreateCounter(Names.Delete_PerSec);
- this.pcDelete_Success = this.CreateCounter(Names.Delete_Success);
- }
-
- private PerformanceCounter CreateCounter(string name)
- {
- try
- {
- PerformanceCounter retval = new PerformanceCounter(Names.CategoryName, name, this.instanceName, false);
- retval.RawValue = 0;
-
- return retval;
- }
- catch (Exception e)
- {
- throw new ConfigurationErrorsException(String.Format("Could not create performance counter {0}::{1}. Make sure the counters are installed using installutil.", this.instanceName, name), e);
- }
- }
-
- public void LogGet(bool success)
- {
- pcGet_PerSec.Increment();
- pcGet_Total.Increment();
- pcGet_HitRatioBase.Increment();
-
- if (success)
- {
- pcGet_Hits.Increment();
- pcGet_HitRatio.Increment();
- }
- else
- {
- pcGet_Misses.Increment();
- }
-
- if (!this.global)
- GlobalInstance.LogGet(success);
- }
-
- public void LogStore(StoreCommand cmd, bool success)
- {
- pcStore_PerSec.Increment();
- pcStore_Total.Increment();
-
- switch (cmd)
- {
- case StoreCommand.Add:
- pcAdd_PerSec.Increment();
- pcAdd_Total.Increment();
- break;
-
- case StoreCommand.Append:
- pcAppend_PerSec.Increment();
- pcAppend_Total.Increment();
- break;
-
- case StoreCommand.CheckAndSet:
- pcCAS_PerSec.Increment();
- pcCAS_Total.Increment();
- break;
-
- case StoreCommand.Prepend:
- pcPrepend_PerSec.Increment();
- pcPrepend_Total.Increment();
- break;
-
- case StoreCommand.Replace:
- pcReplace_PerSec.Increment();
- pcReplace_Total.Increment();
- break;
-
- case StoreCommand.Set:
- pcSet_PerSec.Increment();
- pcSet_Total.Increment();
- break;
- }
-
- if (success)
- {
- pcStore_Success.Increment();
-
- switch (cmd)
- {
- case StoreCommand.Add:
- pcAdd_Success.Increment();
- break;
-
- case StoreCommand.Append:
- pcAppend_Success.Increment();
- break;
-
- case StoreCommand.CheckAndSet:
- pcCAS_Success.Increment();
- break;
-
- case StoreCommand.Prepend:
- pcPrepend_Success.Increment();
- break;
-
- case StoreCommand.Replace:
- pcReplace_Success.Increment();
- break;
-
- case StoreCommand.Set:
- pcSet_Success.Increment();
- break;
- }
- }
-
- if (!this.global)
- GlobalInstance.LogStore(cmd, success);
- }
-
- public void LogDelete(bool success)
- {
- pcDelete_PerSec.Increment();
- pcDelete_Total.Increment();
-
- if (success)
- pcDelete_Success.Increment();
-
- if (!this.global)
- GlobalInstance.LogDelete(success);
- }
-
- #region [ public static class Names ]
- public static class Names
- {
- public const string Get_Total = "Gets Total";
- public const string Get_PerSec = "Gets/Sec";
- public const string Get_Hits = "Get Hits";
- public const string Get_Misses = "Get Misses";
- public const string Get_HitRatio = "Get Hit Ratio";
- public const string Get_HitRatioBase = "Get Ratio Base";
-
- public const string Store_Total = "Stores Total";
- public const string Store_PerSec = "Stores/Sec";
- public const string Store_Success = "Stores Successful";
-
- public const string Add_Total = "Adds Total";
- public const string Add_PerSec = "Adds/Sec";
- public const string Add_Success = "Adds Successful";
-
- public const string Replace_Total = "Replaces Total";
- public const string Replace_PerSec = "Replaces/Sec";
- public const string Replace_Success = "Replaces Successful";
-
- public const string Append_Total = "Appends Total";
- public const string Append_PerSec = "Appends/Sec";
- public const string Append_Success = "Appends Successful";
-
- public const string Prepend_Total = "Prepends Total";
- public const string Prepend_PerSec = "Prepends/Sec";
- public const string Prepend_Success = "Prepends Successful";
-
- public const string Set_Total = "Sets Total";
- public const string Set_PerSec = "Sets/Sec";
- public const string Set_Success = "Sets Successful";
-
- public const string CAS_Total = "CAS Total";
- public const string CAS_PerSec = "CAS/Sec";
- public const string CAS_Success = "CAS Successful";
-
- public const string Delete_Total = "Deletes Total";
- public const string Delete_PerSec = "Deletes/Sec";
- public const string Delete_Success = "Deletes Successful";
-
- public const string CategoryName = "Enyim.Caching.Memcached";
- }
- #endregion
- #region [ IPerformanceCounters ]
-
- void IPerformanceCounters.LogGet(bool success)
- {
- this.LogGet(success);
- }
-
- void IPerformanceCounters.LogStore(StoreCommand cmd, bool success)
- {
- this.LogStore(cmd, success);
- }
-
- void IPerformanceCounters.LogDelete(bool success)
- {
- this.LogDelete(success);
- }
-
- #endregion
- #region [ IDisposable ]
- public void Dispose()
- {
- if (this.pcAdd_PerSec != null)
- {
- #region [ Dispose the counters ]
- this.pcGet_Total.Dispose();
- this.pcGet_PerSec.Dispose();
- this.pcGet_Hits.Dispose();
- this.pcGet_Misses.Dispose();
- this.pcGet_HitRatio.Dispose();
- this.pcGet_HitRatioBase.Dispose();
-
- this.pcStore_Total.Dispose();
- this.pcStore_PerSec.Dispose();
- this.pcStore_Success.Dispose();
-
- this.pcAdd_Total.Dispose();
- this.pcAdd_PerSec.Dispose();
- this.pcAdd_Success.Dispose();
-
- this.pcReplace_Total.Dispose();
- this.pcReplace_PerSec.Dispose();
- this.pcReplace_Success.Dispose();
-
- this.pcAppend_Total.Dispose();
- this.pcAppend_PerSec.Dispose();
- this.pcAppend_Success.Dispose();
-
- this.pcPrepend_Total.Dispose();
- this.pcPrepend_PerSec.Dispose();
- this.pcPrepend_Success.Dispose();
-
- this.pcSet_Total.Dispose();
- this.pcSet_PerSec.Dispose();
- this.pcSet_Success.Dispose();
-
- this.pcCAS_Total.Dispose();
- this.pcCAS_PerSec.Dispose();
- this.pcCAS_Success.Dispose();
-
- this.pcDelete_Total.Dispose();
- this.pcDelete_PerSec.Dispose();
- this.pcDelete_Success.Dispose();
- #endregion
- #region [ Release the references ]
- this.pcGet_Total = null;
- this.pcGet_PerSec = null;
- this.pcGet_Hits = null;
- this.pcGet_Misses = null;
- this.pcGet_HitRatio = null;
- this.pcGet_HitRatioBase = null;
-
- this.pcStore_Total = null;
- this.pcStore_PerSec = null;
- this.pcStore_Success = null;
-
- this.pcAdd_Total = null;
- this.pcAdd_PerSec = null;
- this.pcAdd_Success = null;
-
- this.pcReplace_Total = null;
- this.pcReplace_PerSec = null;
- this.pcReplace_Success = null;
-
- this.pcAppend_Total = null;
- this.pcAppend_PerSec = null;
- this.pcAppend_Success = null;
-
- this.pcPrepend_Total = null;
- this.pcPrepend_PerSec = null;
- this.pcPrepend_Success = null;
-
- this.pcSet_Total = null;
- this.pcSet_PerSec = null;
- this.pcSet_Success = null;
-
- this.pcCAS_Total = null;
- this.pcCAS_PerSec = null;
- this.pcCAS_Success = null;
-
- this.pcDelete_Total = null;
- this.pcDelete_PerSec = null;
- this.pcDelete_Success = null;
- #endregion
- }
- }
-
- void IDisposable.Dispose()
- {
- this.Dispose();
- }
- #endregion
- }
-
- internal class NullPerformanceCounter : IPerformanceCounters
- {
- #region [ IPerformanceCounters ]
-
- void IPerformanceCounters.LogGet(bool success) { }
- void IPerformanceCounters.LogStore(StoreCommand cmd, bool success) { }
- void IPerformanceCounters.LogDelete(bool success) { }
-
- #endregion
- #region [ IDisposable ]
-
- void IDisposable.Dispose()
- {
- }
-
- #endregion
- }
-
- internal interface IPerformanceCounters : IDisposable
- {
- void LogGet(bool success);
- void LogStore(StoreCommand cmd, bool success);
- void LogDelete(bool success);
- }
-}
-
-#region [ License information ]
-/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
- *
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
- * ************************************************************/
-#endregion
View
57 Enyim.Caching/Memcached/InstancePerformanceCountersInstaller.cs
@@ -1,57 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Configuration.Install;
-using System.Diagnostics;
-
-namespace Enyim.Caching.Memcached
-{
- [RunInstaller(true)]
- public class InstancePerformanceCountersInstaller : PerformanceCounterInstaller
- {
- public InstancePerformanceCountersInstaller()
- {
- this.CategoryName = InstancePerformanceCounters.Names.CategoryName;
-
- this.CategoryType = PerformanceCounterCategoryType.MultiInstance;
- this.UninstallAction = UninstallAction.Remove;
-
- CreateGroup(this.Counters, "Append", InstancePerformanceCounters.Names.Append_PerSec, InstancePerformanceCounters.Names.Append_Success, InstancePerformanceCounters.Names.Append_Total);
- CreateGroup(this.Counters, "Prepend", InstancePerformanceCounters.Names.Prepend_PerSec, InstancePerformanceCounters.Names.Prepend_Success, InstancePerformanceCounters.Names.Prepend_Total);
-
- CreateGroup(this.Counters, "Delete", InstancePerformanceCounters.Names.Delete_PerSec, InstancePerformanceCounters.Names.Delete_Success, InstancePerformanceCounters.Names.Delete_Total);
-
- CreateGroup(this.Counters, "Add", InstancePerformanceCounters.Names.Add_PerSec, InstancePerformanceCounters.Names.Add_Success, InstancePerformanceCounters.Names.Add_Total);
- CreateGroup(this.Counters, "CAS", InstancePerformanceCounters.Names.CAS_PerSec, InstancePerformanceCounters.Names.CAS_Success, InstancePerformanceCounters.Names.CAS_Total);
- CreateGroup(this.Counters, "Replace", InstancePerformanceCounters.Names.Replace_PerSec, InstancePerformanceCounters.Names.Replace_Success, InstancePerformanceCounters.Names.Replace_Total);
- CreateGroup(this.Counters, "Set", InstancePerformanceCounters.Names.Set_PerSec, InstancePerformanceCounters.Names.Set_Success, InstancePerformanceCounters.Names.Set_Total);
-
- CreateGroup(this.Counters, "Get", InstancePerformanceCounters.Names.Get_PerSec, InstancePerformanceCounters.Names.Get_Hits, InstancePerformanceCounters.Names.Get_Total);
- this.Counters.Add(new CounterCreationData(InstancePerformanceCounters.Names.Get_Misses,
- "The number of [Get] operations which were not served from the cache.",
- PerformanceCounterType.NumberOfItems64));
-
- this.Counters.Add(new CounterCreationData(InstancePerformanceCounters.Names.Get_HitRatio,
- "Ratio of successful [Get] operations based on the total number of [Get] operations.",
- PerformanceCounterType.RawFraction));
- this.Counters.Add(new CounterCreationData(InstancePerformanceCounters.Names.Get_HitRatioBase, String.Empty, PerformanceCounterType.RawBase));
- }
-
- static void CreateGroup(CounterCreationDataCollection counters, string operation, string persecName, string successName, string totalName)
- {
- counters.Add(new CounterCreationData(
- persecName,
- String.Format("The total number of [{0}] operations per sec.", operation),
- PerformanceCounterType.RateOfCountsPerSecond64));
-
- counters.Add(new CounterCreationData(
- totalName,
- String.Format("The total number of [{0}] operations.", operation),
- PerformanceCounterType.NumberOfItems64));
-
- counters.Add(new CounterCreationData(
- successName,
- String.Format("The total number of successful [{0}] operations.", operation),
- PerformanceCounterType.NumberOfItems64));
- }
- }
-}
View
32 Enyim.Caching/Memcached/KetamaNodeLocator.cs
@@ -152,22 +152,20 @@ private IMemcachedNode LocateNode(uint itemKeyHash)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/KeyTransformers/Base64KeyTransformer.cs
@@ -17,22 +17,20 @@ public override string Transform(string key)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/KeyTransformers/DefaultKeyTransformer.cs
@@ -29,22 +29,20 @@ public override string Transform(string key)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/KeyTransformers/KeyTransformerBase.cs
@@ -1,4 +1,4 @@
-
+
namespace Enyim.Caching.Memcached
{
public abstract class KeyTransformerBase : IMemcachedKeyTransformer
@@ -14,22 +14,20 @@ string IMemcachedKeyTransformer.Transform(string key)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
- *
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
*
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/KeyTransformers/SHA1KeyTransformer.cs
@@ -21,22 +21,20 @@ public override string Transform(string key)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
32 Enyim.Caching/Memcached/KeyTransformers/TigerHashKeyTransformer.cs
@@ -20,22 +20,20 @@ public override string Transform(string key)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/MemcachedClientException.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Enyim.Caching.Memcached
{
@@ -32,22 +32,20 @@ public class MemcachedClientException : MemcachedException
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/MemcachedException.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Enyim.Caching.Memcached
{
@@ -32,22 +32,20 @@ public class MemcachedException : Exception
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/MemcachedNode.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
@@ -484,22 +484,20 @@ int IEqualityComparer<IMemcachedNode>.GetHashCode(IMemcachedNode obj)
#region [ License information ]
/* ************************************************************
- *
- * Copyright (c) Attila Kiskó, enyim.com
- *
- * This source code is subject to terms and conditions of
- * Microsoft Permissive License (Ms-PL).
*
- * A copy of the license can be found in the License.html
- * file at the root of this distribution. If you can not
- * locate the License, please send an email to a@enyim.com
- *
- * By using this source code in any fashion, you are
- * agreeing to be bound by the terms of the Microsoft
- * Permissive License.
- *
- * You must not remove this notice, or any other, from this
- * software.
- *
+ * Copyright (c) 2010 Attila Kiskó, enyim.com
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
* ************************************************************/
-#endregion
+#endregion
View
34 Enyim.Caching/Memcached/Operations/Binary/BinaryConverter.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Text;
namespace Enyim.Caching.Memcached.Operations.Binary
@@ -109,22 +109,20 @@ public static string DecodeKey(byte[] data, int index, int count)